Dmitry Timoshkov : ntdll: Use PAGE_EXECUTE_READWRITE protection when allocating stubs.

Alexandre Julliard julliard at winehq.org
Tue Nov 8 12:23:09 CST 2011


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Tue Nov  8 17:09:17 2011 +0800

ntdll: Use PAGE_EXECUTE_READWRITE protection when allocating stubs.

---

 dlls/ntdll/loader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 314813f..311fd38 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -242,7 +242,7 @@ static ULONG_PTR allocate_stub( const char *dll, const char *name )
     {
         SIZE_T size = MAX_SIZE;
         if (NtAllocateVirtualMemory( NtCurrentProcess(), (void **)&stubs, 0, &size,
-                                     MEM_COMMIT, PAGE_EXECUTE_WRITECOPY ) != STATUS_SUCCESS)
+                                     MEM_COMMIT, PAGE_EXECUTE_READWRITE ) != STATUS_SUCCESS)
             return 0xdeadbeef;
     }
     stub = &stubs[nb_stubs++];




More information about the wine-cvs mailing list