Alexandre Julliard : ntdll: Fix the protection state of writable sections.

Alexandre Julliard julliard at winehq.org
Thu Aug 26 11:42:09 CDT 2010


Module: wine
Branch: master
Commit: 5393f0a947a24c92fb0f6c654f5ac64a423e5081
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5393f0a947a24c92fb0f6c654f5ac64a423e5081

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Aug 26 18:06:10 2010 +0200

ntdll: Fix the protection state of writable sections.

---

 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 51c56fe..a42ed5f 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1278,7 +1278,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_READ|VPROT_WRITECOPY;
+        if (sec->Characteristics & IMAGE_SCN_MEM_WRITE)   vprot |= VPROT_READ|VPROT_WRITE;
         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