Dmitry Timoshkov : ntdll: Use PAGE_EXECUTE_READ protection for an image section.
Alexandre Julliard
julliard at winehq.org
Tue Jan 24 14:25:30 CST 2012
Module: wine
Branch: master
Commit: 0e85fc66deef8524fa079d0906f4ff3728448bc9
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0e85fc66deef8524fa079d0906f4ff3728448bc9
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Jan 24 17:45:21 2012 +0800
ntdll: Use PAGE_EXECUTE_READ protection for an image section.
---
dlls/ntdll/loader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/loader.c b/dlls/ntdll/loader.c
index 98e3dfb..381e2ac 100644
--- a/dlls/ntdll/loader.c
+++ b/dlls/ntdll/loader.c
@@ -1486,12 +1486,12 @@ static NTSTATUS load_native_dll( LPCWSTR load_path, LPCWSTR name, HANDLE file,
size.QuadPart = 0;
status = NtCreateSection( &mapping, STANDARD_RIGHTS_REQUIRED | SECTION_QUERY | SECTION_MAP_READ,
- NULL, &size, PAGE_READONLY, SEC_IMAGE, file );
+ NULL, &size, PAGE_EXECUTE_READ, SEC_IMAGE, file );
if (status != STATUS_SUCCESS) return status;
module = NULL;
status = NtMapViewOfSection( mapping, NtCurrentProcess(),
- &module, 0, 0, &size, &len, ViewShare, 0, PAGE_READONLY );
+ &module, 0, 0, &size, &len, ViewShare, 0, PAGE_EXECUTE_READ );
if (status < 0) goto done;
/* create the MODREF */
More information about the wine-cvs
mailing list