22 lines
890 B
Plaintext
22 lines
890 B
Plaintext
$OpenBSD: patch-if1632_thunk_c,v 1.1 2003/12/31 04:21:45 espie Exp $
|
|
--- if1632/thunk.c.orig 2003-12-31 05:04:32.000000000 +0100
|
|
+++ if1632/thunk.c 2003-12-31 05:05:00.000000000 +0100
|
|
@@ -863,7 +863,7 @@ void THUNK_InitCallout(void)
|
|
if ( hModule )
|
|
{
|
|
#define GETADDR( var, name ) \
|
|
- *(FARPROC32 *)&Callout.##var = GetProcAddress32( hModule, name )
|
|
+ *(FARPROC32 *)&Callout.var = GetProcAddress32( hModule, name )
|
|
|
|
GETADDR( PeekMessage32A, "PeekMessageA" );
|
|
GETADDR( PeekMessage32W, "PeekMessageW" );
|
|
@@ -887,7 +887,7 @@ void THUNK_InitCallout(void)
|
|
if ( hModule )
|
|
{
|
|
#define GETADDR( var, name, thk ) \
|
|
- *(FARPROC32 *)&Callout.##var = (FARPROC32) \
|
|
+ *(FARPROC32 *)&Callout.var = (FARPROC32) \
|
|
THUNK_Alloc( WIN32_GetProcAddress16( hModule, name ), \
|
|
(RELAY)CallTo16_##thk )
|
|
|