mirror of
https://github.com/reactos/wine.git
synced 2025-03-01 17:26:09 +00:00
vmm.vxd: Fix protection flags passed to VirtualAlloc.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5a262d45dc
commit
7fb74ed945
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user