Dmitry Timoshkov : ntdll: Use PAGE_READWRITE access when resolving DLL imports.
Alexandre Julliard
julliard at winehq.org
Thu Nov 3 13:10:14 CDT 2011
Module: wine
Branch: master
Commit: df9a0868656fc4d1bf6ed351385f44ffa2f6b116
URL: http://source.winehq.org/git/wine.git/?a=commit;h=df9a0868656fc4d1bf6ed351385f44ffa2f6b116
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Mon Oct 31 13:48:37 2011 +0800
ntdll: Use PAGE_READWRITE access when resolving DLL imports.
---
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 5ee7d0a..314813f 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -563,7 +563,7 @@ static WINE_MODREF *import_dll( HMODULE module, const IMAGE_IMPORT_DESCRIPTOR *d
protect_base = thunk_list;
protect_size *= sizeof(*thunk_list);
NtProtectVirtualMemory( NtCurrentProcess(), &protect_base,
- &protect_size, PAGE_WRITECOPY, &protect_old );
+ &protect_size, PAGE_READWRITE, &protect_old );
imp_mod = wmImp->ldr.BaseAddress;
exports = RtlImageDirectoryEntryToData( imp_mod, TRUE, IMAGE_DIRECTORY_ENTRY_EXPORT, &exp_size );
More information about the wine-cvs
mailing list