1.1 --- a/sourcehook/sourcehook.h Thu Apr 14 12:54:13 2005 +0000
1.2 +++ b/sourcehook/sourcehook.h Thu Apr 14 13:15:33 2005 +0000
1.3 @@ -280,7 +280,8 @@
1.4 * @param ifacetype The type of the interface
1.5 * @param ifaceptr The interface pointer
1.6 */
1.7 -#define SH_GET_CALLCLASS(ifacetype, ifaceptr) g_SHPtr->GetCallClass(iface, sizeof(ifacetype))
1.8 +#define SH_GET_CALLCLASS(ifacetype, ifaceptr) reinterpret_cast<ifacetype*>(g_SHPtr->GetCallClass(ifaceptr, sizeof(ifacetype)))
1.9 +#define SH_RELEASE_CALLCLASS(ptr) g_SHPtr->ReleaseCallClass(reinterpret_cast<void*>(ptr))
1.10
1.11 #define SH_ADD_HOOK(ifacetype, ifacefunc, ifaceptr, handler, post) \
1.12 SourceHook::SH_FHAdd##ifacetype##ifacefunc((void*)ifaceptr, post, handler)