[1/2] ntdll: Use PAGE_EXECUTE_READWRITE protection when allocating stubs.
Dmitry Timoshkov
dmitry at baikal.ru
Tue Nov 8 03:09:17 CST 2011
Forgot to fix existing VirtualAlloc callers which still use WRITECOPY.
---
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++];
--
1.7.7.2
More information about the wine-patches
mailing list