Alexandre Julliard : ntdll: Only require MAP_SHARED for writable mappings.
Alexandre Julliard
julliard at winehq.org
Tue Dec 12 16:30:10 CST 2017
Module: wine
Branch: master
Commit: dac252ecb42fb17c2f3f2deb559262514b58e990
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dac252ecb42fb17c2f3f2deb559262514b58e990
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Dec 12 15:15:02 2017 +0100
ntdll: Only require MAP_SHARED for writable mappings.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/virtual.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 1156fc1..22965d0 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1146,7 +1146,7 @@ static NTSTATUS map_file_into_view( struct file_view *view, int fd, size_t start
{
void *ptr;
int prot = VIRTUAL_GetUnixProt( vprot | VPROT_COMMITTED /* make sure it is accessible */ );
- unsigned int flags = MAP_FIXED | ((vprot & VPROT_WRITECOPY) ? MAP_PRIVATE : MAP_SHARED);
+ unsigned int flags = MAP_FIXED | ((vprot & VPROT_WRITE) ? MAP_SHARED : MAP_PRIVATE);
assert( start < view->size );
assert( start + size <= view->size );
More information about the wine-cvs
mailing list