diff --git a/reactos/ntoskrnl/ps/i386/psldt.c b/reactos/ntoskrnl/ps/i386/psldt.c index 7e7102f10d8..f13e2952a4a 100644 --- a/reactos/ntoskrnl/ps/i386/psldt.c +++ b/reactos/ntoskrnl/ps/i386/psldt.c @@ -27,15 +27,15 @@ NTAPI PspDeleteVdmObjects(PEPROCESS Process) { /* If there are no VDM objects, just exit */ - if (PsGetCurrentProcess()->VdmObjects == NULL) + if (Process->VdmObjects == NULL) return; /* FIXME: Need to do more than just freeing the main VdmObjects member! */ UNIMPLEMENTED; /* Free VDM objects */ - ExFreePoolWithTag(PsGetCurrentProcess()->VdmObjects, ' eK'); - PsGetCurrentProcess()->VdmObjects = NULL; + ExFreePoolWithTag(Process->VdmObjects, ' eK'); + Process->VdmObjects = NULL; } NTSTATUS