From f7e466455d07a5efcb697e06c695006c6a06e0e6 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 14 Oct 2011 12:16:00 +0900 Subject: [PATCH] ntdll: FreeBSD needs page read access when execute access is requested. --- dlls/ntdll/virtual.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c index 5e69eb99772..9ba98b440d1 100644 --- a/dlls/ntdll/virtual.c +++ b/dlls/ntdll/virtual.c @@ -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;