diff -r 586787053c73 -r dfa5ea299c33 sourcehook/sourcehook.h --- a/sourcehook/sourcehook.h Thu Apr 14 12:54:13 2005 +0000 +++ b/sourcehook/sourcehook.h Thu Apr 14 13:15:33 2005 +0000 @@ -280,7 +280,8 @@ * @param ifacetype The type of the interface * @param ifaceptr The interface pointer */ -#define SH_GET_CALLCLASS(ifacetype, ifaceptr) g_SHPtr->GetCallClass(iface, sizeof(ifacetype)) +#define SH_GET_CALLCLASS(ifacetype, ifaceptr) reinterpret_cast(g_SHPtr->GetCallClass(ifaceptr, sizeof(ifacetype))) +#define SH_RELEASE_CALLCLASS(ptr) g_SHPtr->ReleaseCallClass(reinterpret_cast(ptr)) #define SH_ADD_HOOK(ifacetype, ifacefunc, ifaceptr, handler, post) \ SourceHook::SH_FHAdd##ifacetype##ifacefunc((void*)ifaceptr, post, handler)