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

Alexandre Julliard julliard at winehq.org
Mon Oct 17 13:08:55 CDT 2011


Module: wine
Branch: master
Commit: f7e466455d07a5efcb697e06c695006c6a06e0e6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f7e466455d07a5efcb697e06c695006c6a06e0e6

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Oct 14 12:16:00 2011 +0900

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

---

 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..9ba98b4 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;




More information about the wine-cvs mailing list