[2/3] ntdll: Use PAGE_READWRITE access when resolving DLL imports.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Oct 31 00:48:37 CDT 2011
---
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 );
--
1.7.5.1
More information about the wine-patches
mailing list