Author: cgutman
Date: Thu Aug 18 19:36:40 2011
New Revision: 53305
URL:
http://svn.reactos.org/svn/reactos?rev=53305&view=rev
Log:
[NTOSKRNL]
- Specify a valid number of pages to unprotect
Modified:
trunk/reactos/ntoskrnl/mm/ARM3/pool.c
Modified: trunk/reactos/ntoskrnl/mm/ARM3/pool.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/pool.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/pool.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/pool.c [iso-8859-1] Thu Aug 18 19:36:40 2011
@@ -626,7 +626,7 @@
if (MmProtectFreedNonPagedPool)
{
/* We need to be able to touch this page, unprotect it */
- MiUnProtectFreeNonPagedPool(NextEntry, 0);
+ MiUnProtectFreeNonPagedPool(NextEntry, 1);
}
//
@@ -946,7 +946,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
+ MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
}
//
@@ -1020,7 +1020,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
+ MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
}
/* Check if this is valid pool, or a guard page */
@@ -1058,7 +1058,7 @@
if (MmProtectFreedNonPagedPool)
{
/* The freed block will be merged, it must be made accessible */
- MiUnProtectFreeNonPagedPool(FreeEntry, 0);
+ MiUnProtectFreeNonPagedPool(FreeEntry, 1);
}
//