ntdll: FreeBSD needs page read access when execute access is requested.

This commit is contained in:
Dmitry Timoshkov 2011-10-14 12:16:00 +09:00 committed by Alexandre Julliard
parent 0aad594d5f
commit f7e466455d
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ static int VIRTUAL_GetUnixProt( BYTE vprot )
if (vprot & VPROT_READ) prot |= PROT_READ;
if (vprot & VPROT_WRITE) prot |= PROT_WRITE;
if (vprot & VPROT_WRITECOPY) prot |= PROT_WRITE;
if (vprot & VPROT_EXEC) prot |= PROT_EXEC;
if (vprot & VPROT_EXEC) prot |= PROT_EXEC | PROT_READ;
if (vprot & VPROT_WRITEWATCH) prot &= ~PROT_WRITE;
}
if (!prot) prot = PROT_NONE;