mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTOS] Improve MmDeleteProcessAddressSpace
This commit is contained in:
parent
10fbefdeb0
commit
561b71b644
1 changed files with 4 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue