Commit b0953a09 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Only try to load krnl386 in native applications.

parent 699daa77
......@@ -101,7 +101,13 @@ static BOOL process_attach( HMODULE module )
/* Securom checks for this one when version is NT */
set_entry_point( module, "FT_Thunk", 0 );
}
else LoadLibraryA( "krnl386.exe16" );
else
{
LDR_MODULE *ldr;
if (LdrFindEntryForAddress( GetModuleHandleW( 0 ), &ldr ) || !(ldr->Flags & LDR_WINE_INTERNAL))
LoadLibraryA( "krnl386.exe16" );
}
/* finish the process initialisation for console bits, if needed */
__wine_set_signal_handler(SIGINT, CONSOLE_HandleCtrlC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment