Add PAGE_GUARD flag to the returned protection of guard pages.
This commit is contained in:
parent
fbf0aeaa43
commit
f724399f60
|
@ -456,10 +456,8 @@ static void VIRTUAL_GetWin32Prot(
|
||||||
{
|
{
|
||||||
if (protect) {
|
if (protect) {
|
||||||
*protect = VIRTUAL_Win32Flags[vprot & 0x0f];
|
*protect = VIRTUAL_Win32Flags[vprot & 0x0f];
|
||||||
/* if (vprot & VPROT_GUARD) *protect |= PAGE_GUARD;*/
|
|
||||||
if (vprot & VPROT_NOCACHE) *protect |= PAGE_NOCACHE;
|
if (vprot & VPROT_NOCACHE) *protect |= PAGE_NOCACHE;
|
||||||
|
if (vprot & VPROT_GUARD) *protect = PAGE_NOACCESS | PAGE_GUARD;
|
||||||
if (vprot & VPROT_GUARD) *protect = PAGE_NOACCESS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state) *state = (vprot & VPROT_COMMITTED) ? MEM_COMMIT : MEM_RESERVE;
|
if (state) *state = (vprot & VPROT_COMMITTED) ? MEM_COMMIT : MEM_RESERVE;
|
||||||
|
|
Loading…
Reference in New Issue