[1/2] ntdll: FreeBSD needs page read access when execute access is requested.
Dmitry Timoshkov
dmitry at baikal.ru
Thu Oct 13 22:16:00 CDT 2011
This patch should fix the crashes in the loader test under FreeBSD reported
in the bug 28662.
---
dlls/ntdll/virtual.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 5e69eb9..367b81a 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; /* FreeBSD needs READ */
if (vprot & VPROT_WRITEWATCH) prot &= ~PROT_WRITE;
}
if (!prot) prot = PROT_NONE;
--
1.7.5.1
More information about the wine-patches
mailing list