mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
[NTOSKRNL]
- Specify a valid number of pages to unprotect svn path=/trunk/; revision=53305
This commit is contained in:
@@ -626,7 +626,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
|
||||
if (MmProtectFreedNonPagedPool)
|
||||
{
|
||||
/* We need to be able to touch this page, unprotect it */
|
||||
MiUnProtectFreeNonPagedPool(NextEntry, 0);
|
||||
MiUnProtectFreeNonPagedPool(NextEntry, 1);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -946,7 +946,7 @@ MiFreePoolPages(IN PVOID StartingVa)
|
||||
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 @@ MiFreePoolPages(IN PVOID StartingVa)
|
||||
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 @@ MiFreePoolPages(IN PVOID StartingVa)
|
||||
if (MmProtectFreedNonPagedPool)
|
||||
{
|
||||
/* The freed block will be merged, it must be made accessible */
|
||||
MiUnProtectFreeNonPagedPool(FreeEntry, 0);
|
||||
MiUnProtectFreeNonPagedPool(FreeEntry, 1);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user