Commit 02ec0048 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Michael Stefaniuc

vmm.vxd: Fix protection flags passed to VirtualAlloc.

Signed-off-by: 's avatarSebastian Lackner <sebastian@fds-team.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 7fb74ed9) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent cc21cc30
......@@ -159,7 +159,7 @@ DWORD WINAPI VMM_VxDCall( DWORD service, CONTEXT *context )
if ( page == PR_PRIVATE || page == PR_SHARED ) page = 0;
/* FIXME: Handle flags in some way */
address = (LPVOID )(page * page_size);
ret = VirtualAlloc ( address, npages * page_size, MEM_RESERVE, 0 );
ret = VirtualAlloc ( address, npages * page_size, MEM_RESERVE, PAGE_EXECUTE_READWRITE );
TRACE("PageReserve: returning: %p\n", ret );
if ( ret == NULL )
return -1;
......
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