ntdll: Fix DEP status initialization.
This commit is contained in:
parent
689984b425
commit
be90ae2fc3
|
@ -809,8 +809,9 @@ static WINE_MODREF *alloc_module( HMODULE hModule, LPCWSTR filename )
|
|||
|
||||
if (!(nt->OptionalHeader.DllCharacteristics & IMAGE_DLLCHARACTERISTICS_NX_COMPAT))
|
||||
{
|
||||
ULONG flags = MEM_EXECUTE_OPTION_ENABLE;
|
||||
WARN( "disabling no-exec because of %s\n", debugstr_w(wm->ldr.BaseDllName.Buffer) );
|
||||
VIRTUAL_SetForceExec( TRUE );
|
||||
NtSetInformationProcess( GetCurrentProcess(), ProcessExecuteFlags, &flags, sizeof(flags) );
|
||||
}
|
||||
return wm;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
|
||||
|
||||
static ULONG execute_flags = MEM_EXECUTE_OPTION_ENABLE;
|
||||
static ULONG execute_flags = MEM_EXECUTE_OPTION_DISABLE;
|
||||
|
||||
/*
|
||||
* Process object
|
||||
|
|
Loading…
Reference in New Issue