Add PAGE_GUARD flag to the returned protection of guard pages.

This commit is contained in:
Alexandre Julliard 2005-06-21 20:23:02 +00:00
parent fbf0aeaa43
commit f724399f60
1 changed files with 1 additions and 3 deletions

View File

@ -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;