[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
This commit is contained in:
Hermès Bélusca-Maïto
2015-03-19 00:06:54 +00:00
parent 52c5d11cda
commit e6ce05a90f
+3 -3
View File
@@ -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