mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[NTOS] Improve MmDeleteProcessAddressSpace
This commit is contained in:
@@ -1379,7 +1379,8 @@ MmDeleteProcessAddressSpace(IN PEPROCESS Process)
|
||||
|
||||
/* Remove us from the list */
|
||||
OldIrql = MiAcquireExpansionLock();
|
||||
RemoveEntryList(&Process->Vm.WorkingSetExpansionLinks);
|
||||
if (Process->Vm.WorkingSetExpansionLinks.Flink != NULL)
|
||||
RemoveEntryList(&Process->Vm.WorkingSetExpansionLinks);
|
||||
MiReleaseExpansionLock(OldIrql);
|
||||
|
||||
/* Acquire the PFN lock */
|
||||
@@ -1421,8 +1422,8 @@ MmDeleteProcessAddressSpace(IN PEPROCESS Process)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* A partly-initialized process should never exit through here */
|
||||
ASSERT(FALSE);
|
||||
DPRINT1("Deleting partially initialized address space of Process %p. Might leak resources.\n",
|
||||
Process);
|
||||
}
|
||||
|
||||
/* Release the PFN lock */
|
||||
|
||||
Reference in New Issue
Block a user