mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
[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:
@@ -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)
|
||||
|
||||
@@ -301,8 +301,6 @@ PspDeleteProcess(IN PVOID ObjectBody)
|
||||
/* Detach */
|
||||
KeUnstackDetachProcess(&ApcState);
|
||||
|
||||
RemoveEntryList(&Process->MmProcessLinks);
|
||||
|
||||
/* Completely delete the Address Space */
|
||||
MmDeleteProcessAddressSpace(Process);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user