=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ntdll: Allow reading from a writable section.
Alexandre Julliard
julliard at winehq.org
Wed Sep 7 12:35:33 CDT 2011
Module: wine
Branch: master
Commit: 8fc74191205e03719ee275fcd957ddd6deda7ee6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8fc74191205e03719ee275fcd957ddd6deda7ee6
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Sep 6 18:00:42 2011 +0200
ntdll: Allow reading from a writable section.
---
dlls/ntdll/virtual.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index a7679da..dda1f37 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1341,7 +1341,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
size = ROUND_SIZE( sec->VirtualAddress, sec->SizeOfRawData );
if (sec->Characteristics & IMAGE_SCN_MEM_READ) vprot |= VPROT_READ;
- if (sec->Characteristics & IMAGE_SCN_MEM_WRITE) vprot |= VPROT_WRITECOPY;
+ if (sec->Characteristics & IMAGE_SCN_MEM_WRITE) vprot |= VPROT_READ | VPROT_WRITECOPY;
if (sec->Characteristics & IMAGE_SCN_MEM_EXECUTE) vprot |= VPROT_EXEC;
/* Dumb game crack lets the AOEP point into a data section. Adjust. */
More information about the wine-cvs
mailing list