Alexandre Julliard : ntdll: Fix the protection state of writable sections.
Alexandre Julliard
julliard at winehq.org
Tue Oct 5 14:41:46 CDT 2010
Module: wine
Branch: stable
Commit: 78fa6cb861fecf2718b5fddbaec2fb683e6aa512
URL: http://source.winehq.org/git/wine.git/?a=commit;h=78fa6cb861fecf2718b5fddbaec2fb683e6aa512
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Aug 26 18:06:10 2010 +0200
ntdll: Fix the protection state of writable sections.
(cherry picked from commit 5393f0a947a24c92fb0f6c654f5ac64a423e5081)
---
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 0158656..1428be0 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -1277,7 +1277,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