ntdll: Fix DEP status initialization.

This commit is contained in:
Michael Karcher 2009-09-12 01:27:42 +02:00 committed by Alexandre Julliard
parent 689984b425
commit be90ae2fc3
2 changed files with 3 additions and 2 deletions

View File

@ -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;
}

View File

@ -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