Author: hbelusca
Date: Thu Mar 19 00:06:54 2015
New Revision: 66794
URL:
http://svn.reactos.org/svn/reactos?rev=66794&view=rev
Log:
[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 ^^).
Modified:
trunk/reactos/ntoskrnl/ps/i386/psldt.c
Modified: trunk/reactos/ntoskrnl/ps/i386/psldt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/i386/psldt.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/i386/psldt.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/i386/psldt.c [iso-8859-1] Thu Mar 19 00:06:54 2015
@@ -27,15 +27,15 @@
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