Fix warnings in miscemu/main.c.
This commit is contained in:
parent
9ea63d0ca0
commit
773c7b75f6
|
@ -41,6 +41,10 @@ BOOL32 MAIN_EmulatorInit(void)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef BOOL32 (*WINAPI tGetMessage)(MSG32* lpmsg,HWND32 hwnd,UINT32 min,UINT32 max);
|
||||||
|
typedef BOOL32 (*WINAPI tTranslateMessage)(const MSG32* msg);
|
||||||
|
typedef LONG (*WINAPI tDispatchMessage)( const MSG32* msg );
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* Main loop of initial task
|
* Main loop of initial task
|
||||||
*/
|
*/
|
||||||
|
@ -50,11 +54,11 @@ void MAIN_EmulatorRun( void )
|
||||||
HINSTANCE32 handle;
|
HINSTANCE32 handle;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
BOOL32 (*WINAPI pGetMessage)(MSG32* lpmsg,HWND32 hwnd,UINT32 min,UINT32 max);
|
tGetMessage pGetMessage;
|
||||||
BOOL32 (*WINAPI pTranslateMessage)( const MSG32* msg );
|
tTranslateMessage pTranslateMessage;
|
||||||
LONG (*WINAPI pDispatchMessage)( const MSG32* msg );
|
tDispatchMessage pDispatchMessage;
|
||||||
HMODULE32 hModule;
|
HMODULE32 hModule;
|
||||||
MSG32 msg;
|
MSG32 msg;
|
||||||
|
|
||||||
/* Load system DLLs into the initial process (and initialize them) */
|
/* Load system DLLs into the initial process (and initialize them) */
|
||||||
if ( !LoadLibrary16("GDI.EXE" ) || !LoadLibrary32A("GDI32.DLL" )
|
if ( !LoadLibrary16("GDI.EXE" ) || !LoadLibrary32A("GDI32.DLL" )
|
||||||
|
@ -104,9 +108,9 @@ void MAIN_EmulatorRun( void )
|
||||||
/* Start message loop for desktop window */
|
/* Start message loop for desktop window */
|
||||||
|
|
||||||
hModule = GetModuleHandle32A( "USER32" );
|
hModule = GetModuleHandle32A( "USER32" );
|
||||||
pGetMessage = GetProcAddress32( hModule, "GetMessageA" );
|
pGetMessage = (tGetMessage)GetProcAddress32( hModule, "GetMessageA" );
|
||||||
pTranslateMessage = GetProcAddress32( hModule, "TranslateMessage" );
|
pTranslateMessage = (tTranslateMessage)GetProcAddress32( hModule, "TranslateMessage" );
|
||||||
pDispatchMessage = GetProcAddress32( hModule, "DispatchMessageA" );
|
pDispatchMessage = (tDispatchMessage)GetProcAddress32( hModule, "DispatchMessageA" );
|
||||||
|
|
||||||
assert( pGetMessage );
|
assert( pGetMessage );
|
||||||
assert( pTranslateMessage );
|
assert( pTranslateMessage );
|
||||||
|
|
Loading…
Reference in New Issue