mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 01:48:31 +00:00
[NTOSKRNL]
- Specify a valid number of pages to unprotect svn path=/trunk/; revision=53305
This commit is contained in:
parent
5f13171411
commit
3b6ff19841
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue