Added typedef to insure compilation on all gcc&egcs versions.

This commit is contained in:
Eric Pouech 1999-12-05 23:04:00 +00:00 committed by Alexandre Julliard
parent ac28aa245f
commit fe08849938
1 changed files with 3 additions and 3 deletions

View File

@ -648,6 +648,7 @@ void NE_InitializeDLLs( HMODULE16 hModule )
*
* Call the DllEntryPoint of DLLs with subsystem >= 4.0
*/
typedef DWORD WINAPI (*WinNEEntryProc)(DWORD,WORD,WORD,WORD,DWORD,WORD);
static void NE_CallDllEntryPoint( NE_MODULE *pModule, DWORD dwReason )
{
@ -668,9 +669,8 @@ static void NE_CallDllEntryPoint( NE_MODULE *pModule, DWORD dwReason )
if ( pModule->flags & NE_FFLAGS_BUILTIN )
{
DWORD WINAPI (*entryProc)(DWORD,WORD,WORD,WORD,DWORD,WORD) =
(DWORD WINAPI (*)(DWORD,WORD,WORD,WORD,DWORD,WORD))
((ENTRYPOINT16 *)PTR_SEG_TO_LIN( entryPoint ))->target;
WinNEEntryProc entryProc = (WinNEEntryProc)
((ENTRYPOINT16 *)PTR_SEG_TO_LIN( entryPoint ))->target;
entryProc( dwReason, hInst, ds, heap, 0, 0 );
}