mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
- Revert r53305 because Windows unprotects pages this way
svn path=/trunk/; revision=53306
This commit is contained in:
parent
3b6ff19841
commit
64122c317a
|
@ -626,7 +626,7 @@ MiAllocatePoolPages(IN POOL_TYPE PoolType,
|
||||||
if (MmProtectFreedNonPagedPool)
|
if (MmProtectFreedNonPagedPool)
|
||||||
{
|
{
|
||||||
/* We need to be able to touch this page, unprotect it */
|
/* We need to be able to touch this page, unprotect it */
|
||||||
MiUnProtectFreeNonPagedPool(NextEntry, 1);
|
MiUnProtectFreeNonPagedPool(NextEntry, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -946,7 +946,7 @@ MiFreePoolPages(IN PVOID StartingVa)
|
||||||
if (MmProtectFreedNonPagedPool)
|
if (MmProtectFreedNonPagedPool)
|
||||||
{
|
{
|
||||||
/* The freed block will be merged, it must be made accessible */
|
/* The freed block will be merged, it must be made accessible */
|
||||||
MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
|
MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1020,7 +1020,7 @@ MiFreePoolPages(IN PVOID StartingVa)
|
||||||
if (MmProtectFreedNonPagedPool)
|
if (MmProtectFreedNonPagedPool)
|
||||||
{
|
{
|
||||||
/* The freed block will be merged, it must be made accessible */
|
/* The freed block will be merged, it must be made accessible */
|
||||||
MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 1);
|
MiUnProtectFreeNonPagedPool(MiPteToAddress(PointerPte), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if this is valid pool, or a guard page */
|
/* Check if this is valid pool, or a guard page */
|
||||||
|
@ -1058,7 +1058,7 @@ MiFreePoolPages(IN PVOID StartingVa)
|
||||||
if (MmProtectFreedNonPagedPool)
|
if (MmProtectFreedNonPagedPool)
|
||||||
{
|
{
|
||||||
/* The freed block will be merged, it must be made accessible */
|
/* The freed block will be merged, it must be made accessible */
|
||||||
MiUnProtectFreeNonPagedPool(FreeEntry, 1);
|
MiUnProtectFreeNonPagedPool(FreeEntry, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue