From e6ce05a90f2b8f8d135eb6e14f0bfb7feebec61e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 19 Mar 2015 00:06:54 +0000 Subject: [PATCH] [NTOS]: Heh Arch, use the Process parameter of the function, instead of PsGetCurrentProcess()!! (bug found by Thomas, because I quickly copied the code from ke/i386/v86vdm.c function Ke386CallBios lines 693 and below without adapting it to the present case ^^). svn path=/trunk/; revision=66794 --- reactos/ntoskrnl/ps/i386/psldt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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