Call InitApp16 (using Callout) for initial process.
This commit is contained in:
parent
a95b4886e9
commit
73663071c6
|
@ -888,6 +888,7 @@ void THUNK_InitCallout(void)
|
|||
GETADDR( TranslateMessage16, "TranslateMessage", word_l );
|
||||
GETADDR( DispatchMessage16, "DispatchMessage", long_l );
|
||||
GETADDR( RedrawWindow16, "RedrawWindow", word_wlww );
|
||||
GETADDR( InitApp16, "InitApp", word_w );
|
||||
GETADDR( InitThreadInput16, "InitThreadInput", word_ww );
|
||||
GETADDR( UserYield16, "UserYield", word_ );
|
||||
GETADDR( DestroyIcon32, "DestroyIcon32", word_ww );
|
||||
|
|
|
@ -125,6 +125,7 @@ typedef struct
|
|||
WORD WINAPI (*UserSignalProc)( UINT uCode, DWORD dwThreadOrProcessID,
|
||||
DWORD dwFlags, HMODULE16 hModule );
|
||||
|
||||
INT16 WINAPI (*InitApp16)( HINSTANCE16 hInst );
|
||||
HQUEUE16 WINAPI (*InitThreadInput16)( WORD unknown, WORD flags );
|
||||
void WINAPI (*UserYield16)( void );
|
||||
WORD WINAPI (*DestroyIcon32)( HGLOBAL16 handle, UINT16 flags );
|
||||
|
|
|
@ -332,7 +332,7 @@ CALLOUT_TABLE Callout =
|
|||
DispatchMessage16, DispatchMessageA, DispatchMessageW,
|
||||
RedrawWindow16, RedrawWindow,
|
||||
UserSignalProc,
|
||||
InitThreadInput16,
|
||||
InitApp16, InitThreadInput16,
|
||||
UserYield16,
|
||||
CURSORICON_Destroy
|
||||
};
|
||||
|
|
|
@ -59,6 +59,9 @@ void MAIN_EmulatorRun( void )
|
|||
/* Get pointers to USER routines called by KERNEL */
|
||||
THUNK_InitCallout();
|
||||
|
||||
/* Call InitApp for initial task */
|
||||
Callout.InitApp16( MapHModuleLS( 0 ) );
|
||||
|
||||
/* Add the Default Program if no program on the command line */
|
||||
if (!MAIN_argv[1])
|
||||
{
|
||||
|
@ -76,7 +79,7 @@ void MAIN_EmulatorRun( void )
|
|||
if (MAIN_argc <= 1)
|
||||
{
|
||||
MAIN_Usage(MAIN_argv[0]);
|
||||
exit(1);
|
||||
ExitProcess( 1 );
|
||||
}
|
||||
|
||||
/* Load and run executables given on command line */
|
||||
|
|
Loading…
Reference in New Issue