mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOS:MM] Remove obsolete code path
In MmCleanProcessAddressSpace we already delete VADs that are RosMm memory areas by calling MiRosCleanupMemoryArea, so we never reach the later check. This code path is from a time when VADs and memory areas lived in different tables, which is no longer the case.
This commit is contained in:
@@ -1327,14 +1327,6 @@ MmCleanProcessAddressSpace(IN PEPROCESS Process)
|
||||
MiUnlockProcessWorkingSetUnsafe(Process, Thread);
|
||||
}
|
||||
|
||||
/* Skip ARM3 fake VADs, they'll be freed by MmDeleteProcessAddresSpace */
|
||||
if (Vad->u.VadFlags.Spare == 1)
|
||||
{
|
||||
/* Set a flag so MmDeleteMemoryArea knows to free, but not to remove */
|
||||
Vad->u.VadFlags.Spare = 2;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Free the VAD memory */
|
||||
ExFreePool(Vad);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user