mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
ntdll: Use PAGE_EXECUTE_READWRITE protection when allocating stubs.
This commit is contained in:
parent
deaae1f562
commit
26f4ff1a38
|
@ -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++];
|
||||
|
|
Loading…
Reference in a new issue