Commit b97d63d7 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Explicitly request execute permission in MapViewOfFile.

parent 1ff8e7dd
......@@ -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 )))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment