kernel32: Move shared heap creation to krnl386 and load it by default on Win9x versions.
This commit is contained in:
parent
464ece6474
commit
00ac7074df
@ -123,13 +123,7 @@ static BOOL process_attach( HMODULE module )
|
|||||||
/* Securom checks for this one when version is NT */
|
/* Securom checks for this one when version is NT */
|
||||||
set_entry_point( module, "FT_Thunk", 0 );
|
set_entry_point( module, "FT_Thunk", 0 );
|
||||||
}
|
}
|
||||||
#ifdef __i386__
|
else LoadLibraryA( "krnl386.exe16" );
|
||||||
else
|
|
||||||
{
|
|
||||||
/* create the shared heap for broken win95 native dlls */
|
|
||||||
HeapCreate( HEAP_SHARED, 0, 0 );
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* finish the process initialisation for console bits, if needed */
|
/* finish the process initialisation for console bits, if needed */
|
||||||
__wine_set_signal_handler(SIGINT, CONSOLE_HandleCtrlC);
|
__wine_set_signal_handler(SIGINT, CONSOLE_HandleCtrlC);
|
||||||
|
@ -95,6 +95,9 @@ BOOL WINAPI KERNEL_DllEntryPoint( DWORD reasion, HINSTANCE16 inst, WORD ds,
|
|||||||
if (done) return TRUE;
|
if (done) return TRUE;
|
||||||
done = 1;
|
done = 1;
|
||||||
|
|
||||||
|
/* create the shared heap for broken win95 native dlls */
|
||||||
|
HeapCreate( HEAP_SHARED, 0, 0 );
|
||||||
|
|
||||||
/* setup emulation of protected instructions from 32-bit code */
|
/* setup emulation of protected instructions from 32-bit code */
|
||||||
if (GetVersion() & 0x80000000) RtlAddVectoredExceptionHandler( TRUE, INSTR_vectored_handler );
|
if (GetVersion() & 0x80000000) RtlAddVectoredExceptionHandler( TRUE, INSTR_vectored_handler );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user