--- libEMF-1.0/include/wine/winbase.h 2002-01-08 00:21:04.000000000 +0100 +++ libEMF-1.0-patched/include/wine/winbase.h 2006-06-26 01:25:47.000000000 +0200 @@ -1803,12 +1803,12 @@ #endif /* __i386__ && __GNUC__ */ /* FIXME: should handle platforms where sizeof(void*) != sizeof(long) */ -static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID *dest, PVOID xchg, PVOID compare ) +static inline PVOID WINAPI InterlockedCompareExchangePointer( PVOID *dest, LONG xchg, LONG compare ) { return (PVOID)InterlockedCompareExchange( (PLONG)dest, (LONG)xchg, (LONG)compare ); } -static inline PVOID WINAPI InterlockedExchangePointer( PVOID *dest, PVOID val ) +static inline PVOID WINAPI InterlockedExchangePointer( PVOID *dest, LONG val ) { return (PVOID)InterlockedExchange( (PLONG)dest, (LONG)val ); }