Fix warnings in miscemu/main.c.

This commit is contained in:
Marcus Meissner 1998-11-30 17:18:30 +00:00 committed by Alexandre Julliard
parent 9ea63d0ca0
commit 773c7b75f6
1 changed files with 12 additions and 8 deletions

View File

@ -41,6 +41,10 @@ BOOL32 MAIN_EmulatorInit(void)
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
*/
@ -50,11 +54,11 @@ void MAIN_EmulatorRun( void )
HINSTANCE32 handle;
int i;
BOOL32 (*WINAPI pGetMessage)(MSG32* lpmsg,HWND32 hwnd,UINT32 min,UINT32 max);
BOOL32 (*WINAPI pTranslateMessage)( const MSG32* msg );
LONG (*WINAPI pDispatchMessage)( const MSG32* msg );
HMODULE32 hModule;
MSG32 msg;
tGetMessage pGetMessage;
tTranslateMessage pTranslateMessage;
tDispatchMessage pDispatchMessage;
HMODULE32 hModule;
MSG32 msg;
/* Load system DLLs into the initial process (and initialize them) */
if ( !LoadLibrary16("GDI.EXE" ) || !LoadLibrary32A("GDI32.DLL" )
@ -104,9 +108,9 @@ void MAIN_EmulatorRun( void )
/* Start message loop for desktop window */
hModule = GetModuleHandle32A( "USER32" );
pGetMessage = GetProcAddress32( hModule, "GetMessageA" );
pTranslateMessage = GetProcAddress32( hModule, "TranslateMessage" );
pDispatchMessage = GetProcAddress32( hModule, "DispatchMessageA" );
pGetMessage = (tGetMessage)GetProcAddress32( hModule, "GetMessageA" );
pTranslateMessage = (tTranslateMessage)GetProcAddress32( hModule, "TranslateMessage" );
pDispatchMessage = (tDispatchMessage)GetProcAddress32( hModule, "DispatchMessageA" );
assert( pGetMessage );
assert( pTranslateMessage );