mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +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:
parent
46d89d3a50
commit
3f003e294e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue