Call Callout routines directly when using builtin USER.

oldstable
Ulrich Weigand 1999-05-08 09:56:00 +00:00 committed by Alexandre Julliard
parent b613a105b6
commit e6cc6fdc07
1 changed files with 10 additions and 3 deletions

View File

@ -13,6 +13,7 @@
#include "user.h"
#include "heap.h"
#include "module.h"
#include "neexe.h"
#include "process.h"
#include "stackframe.h"
#include "selectors.h"
@ -861,8 +862,13 @@ WORD WINAPI WIN16_CreateSystemTimer( WORD rate, FARPROC16 proc )
*/
void THUNK_InitCallout(void)
{
HMODULE hModule = GetModuleHandleA( "USER32" );
if ( hModule )
HMODULE hModule;
WINE_MODREF *wm;
NE_MODULE *pModule;
hModule = GetModuleHandleA( "USER32" );
wm = MODULE32_LookupHMODULE( hModule );
if ( wm && !(wm->flags & WINE_MODREF_INTERNAL) )
{
#define GETADDR( var, name ) \
*(FARPROC *)&Callout.##var = GetProcAddress( hModule, name )
@ -887,7 +893,8 @@ void THUNK_InitCallout(void)
}
hModule = GetModuleHandle16( "USER" );
if ( hModule )
pModule = NE_GetPtr( hModule );
if ( pModule && !(pModule->flags & NE_FFLAGS_BUILTIN) )
{
#define GETADDR( var, name, thk ) \
*(FARPROC *)&Callout.##var = (FARPROC) \