Commit f724399f authored by Alexandre Julliard's avatar Alexandre Julliard

Add PAGE_GUARD flag to the returned protection of guard pages.

parent fbf0aeaa
......@@ -456,10 +456,8 @@ static void VIRTUAL_GetWin32Prot(
{
if (protect) {
*protect = VIRTUAL_Win32Flags[vprot & 0x0f];
/* if (vprot & VPROT_GUARD) *protect |= PAGE_GUARD;*/
if (vprot & VPROT_NOCACHE) *protect |= PAGE_NOCACHE;
if (vprot & VPROT_GUARD) *protect = PAGE_NOACCESS;
if (vprot & VPROT_GUARD) *protect = PAGE_NOACCESS | PAGE_GUARD;
}
if (state) *state = (vprot & VPROT_COMMITTED) ? MEM_COMMIT : MEM_RESERVE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment