mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
- MmDeleteVirtualMapping can be called for memory that isn't mapped yet -- just ignore this like we do on x86.
- This gets us much farther, to the point where we try to load smss.exe but can't find it. svn path=/trunk/; revision=34821
This commit is contained in:
@@ -293,12 +293,21 @@ MmDeleteVirtualMapping(IN PEPROCESS Process,
|
||||
// Get the PTE
|
||||
//
|
||||
PointerPte = MiGetPteAddress(Address);
|
||||
ASSERT(PointerPte->u.Hard.L2.Small.Type == SmallPte);
|
||||
|
||||
if (PointerPte->u.Hard.L1.Fault.Type == FaultPte)
|
||||
{
|
||||
//
|
||||
// Invalid PTE
|
||||
//
|
||||
if (WasDirty) *WasDirty = FALSE;
|
||||
if (Page) *Page = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
//
|
||||
// Save the PTE
|
||||
//
|
||||
Pte = *PointerPte;
|
||||
ASSERT(PointerPte->u.Hard.L2.Small.Type == SmallPte);
|
||||
|
||||
//
|
||||
// Destroy the PTE
|
||||
|
||||
Reference in New Issue
Block a user