ntdll: Don't call the dll entry point for native modules.
This commit is contained in:
parent
6a78ea4d6c
commit
2e25b859ea
|
@ -715,7 +715,8 @@ static WINE_MODREF *alloc_module( HMODULE hModule, LPCWSTR filename )
|
|||
else p = wm->ldr.FullDllName.Buffer;
|
||||
RtlInitUnicodeString( &wm->ldr.BaseDllName, p );
|
||||
|
||||
if (nt->FileHeader.Characteristics & IMAGE_FILE_DLL)
|
||||
if (nt->OptionalHeader.Subsystem != IMAGE_SUBSYSTEM_NATIVE &&
|
||||
(nt->FileHeader.Characteristics & IMAGE_FILE_DLL))
|
||||
{
|
||||
wm->ldr.Flags |= LDR_IMAGE_IS_DLL;
|
||||
if (nt->OptionalHeader.AddressOfEntryPoint)
|
||||
|
|
Loading…
Reference in New Issue