Module: wine Branch: master Commit: b97d63d76ff488278622f3e1ec9907519f6b8e74 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b97d63d76ff488278622f3e1ec... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Nov 10 11:09:40 2008 +0100 kernel32: Explicitly request execute permission in MapViewOfFile. --- dlls/kernel32/virtual.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/kernel32/virtual.c b/dlls/kernel32/virtual.c index 4db68ca..2b89655 100644 --- a/dlls/kernel32/virtual.c +++ b/dlls/kernel32/virtual.c @@ -543,6 +543,8 @@ LPVOID WINAPI MapViewOfFileEx( HANDLE handle, DWORD access, else if (access & FILE_MAP_COPY) protect = PAGE_WRITECOPY; else protect = PAGE_NOACCESS; + if (access & FILE_MAP_EXECUTE) protect <<= 4; + if ((status = NtMapViewOfSection( handle, GetCurrentProcess(), &addr, 0, 0, &offset, &count, ViewShare, 0, protect ))) {