[NTOS]: Move the fix for pool corruption due to dangling MmProcessLinks pointer into its correct location. Thanks again to Martin for the fix.

svn path=/trunk/; revision=48758
This commit is contained in:
Sir Richard
2010-09-12 19:02:39 +00:00
parent 46d89d3a50
commit 3f003e294e
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -25,6 +25,8 @@ MmDeleteProcessAddressSpace(PEPROCESS Process)
DPRINT("MmDeleteProcessAddressSpace(Process %x (%s))\n", Process,
Process->ImageFileName);
RemoveEntryList(&Process->MmProcessLinks);
MmLockAddressSpace(&Process->Vm);
while ((MemoryArea = (PMEMORY_AREA)Process->Vm.WorkingSetExpansionLinks.Flink) != NULL)
-2
View File
@@ -301,8 +301,6 @@ PspDeleteProcess(IN PVOID ObjectBody)
/* Detach */
KeUnstackDetachProcess(&ApcState);
RemoveEntryList(&Process->MmProcessLinks);
/* Completely delete the Address Space */
MmDeleteProcessAddressSpace(Process);
}