vmm.vxd: Fix protection flags passed to VirtualAlloc.
Sebastian Lackner
sebastian at fds-team.de
Fri Feb 12 00:10:41 CST 2016
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
For https://bugs.winehq.org/show_bug.cgi?id=36013
dlls/vmm.vxd/vmm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/vmm.vxd/vmm.c b/dlls/vmm.vxd/vmm.c
index 7327f78..833a8d1 100644
--- a/dlls/vmm.vxd/vmm.c
+++ b/dlls/vmm.vxd/vmm.c
@@ -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;
--
2.7.1
More information about the wine-patches
mailing list