Author: arty
Date: Tue Jun 12 20:41:13 2012
New Revision: 56724
URL:
http://svn.reactos.org/svn/reactos?rev=56724&view=rev
Log:
[NTOSKRNL]
Withdraw a wait entry before mapping a page.
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Tue Jun 12 20:41:13 2012
@@ -1283,6 +1283,8 @@
if (HasSwapEntry)
{
+ SWAPENTRY DummyEntry;
+
/*
* Is it a wait entry?
*/
@@ -1331,6 +1333,7 @@
KeBugCheck(MEMORY_MANAGEMENT);
}
MmLockAddressSpace(AddressSpace);
+ MmDeletePageFileMapping(Process, PAddress, &DummyEntry);
Status = MmCreateVirtualMapping(Process,
PAddress,
Region->Protect,