1.1 --- a/sourcehook/sourcehook.h Thu Aug 10 21:07:07 2006 +0000
1.2 +++ b/sourcehook/sourcehook.h Sun Aug 13 11:34:30 2006 +0000
1.3 @@ -723,7 +723,7 @@
1.4 param->SetInfo(ms_MFI.vtbloffs, ms_MFI.vtblindex, \
1.5 reinterpret_cast<const char*>(&ms_Proto)); \
1.6 \
1.7 - MemFuncInfo mfi; \
1.8 + MemFuncInfo mfi = {true, -1, 0, 0}; \
1.9 GetFuncInfo(&SH_FHCls(ifacetype,ifacefunc,overload)::Func, mfi); \
1.10 param->SetHookfuncVfnptr( \
1.11 reinterpret_cast<void**>(reinterpret_cast<char*>(&ms_Inst) + mfi.vtbloffs)[mfi.vtblindex]); \
1.12 @@ -764,7 +764,7 @@
1.13 SH_FHCls(ifacetype,ifacefunc,overload)::FD handler) \
1.14 { \
1.15 using namespace ::SourceHook; \
1.16 - MemFuncInfo mfi; \
1.17 + MemFuncInfo mfi = {true, -1, 0, 0}; \
1.18 GetFuncInfo(funcptr, mfi); \
1.19 if (mfi.thisptroffs < 0 || !mfi.isVirtual) \
1.20 return false; /* No non-virtual functions / virtual inheritance supported */ \
1.21 @@ -777,7 +777,7 @@
1.22 SH_FHCls(ifacetype,ifacefunc,overload)::FD handler) \
1.23 { \
1.24 using namespace ::SourceHook; \
1.25 - MemFuncInfo mfi; \
1.26 + MemFuncInfo mfi = {true, -1, 0, 0}; \
1.27 GetFuncInfo(funcptr, mfi); \
1.28 if (mfi.thisptroffs < 0) \
1.29 return false; /* No virtual inheritance supported */ \
1.30 @@ -818,7 +818,7 @@
1.31 param->SetInfo(ms_MFI.vtbloffs, ms_MFI.vtblindex, \
1.32 reinterpret_cast<const char*>(&ms_Proto)); \
1.33 \
1.34 - MemFuncInfo mfi; \
1.35 + MemFuncInfo mfi = {true, -1, 0, 0}; \
1.36 GetFuncInfo(&SH_MFHCls(hookname)::Func, mfi); \
1.37 param->SetHookfuncVfnptr( \
1.38 reinterpret_cast<void**>(reinterpret_cast<char*>(&ms_Inst) + mfi.vtbloffs)[mfi.vtblindex]); \
1.39 @@ -3012,7 +3012,7 @@
1.40 # define SH_MAKE_EXECUTABLECLASS_OB(call, prms) \
1.41 { \
1.42 using namespace ::SourceHook; \
1.43 - MemFuncInfo mfi; \
1.44 + MemFuncInfo mfi = {true, -1, 0, 0}; \
1.45 GetFuncInfo(m_CC->GetThisPtr(), m_MFP, mfi); \
1.46 void *origfunc = m_CC->GetOrigFunc(mfi.thisptroffs + mfi.vtbloffs, mfi.vtblindex); \
1.47 if (!origfunc) \
1.48 @@ -3051,7 +3051,7 @@
1.49 # define SH_MAKE_EXECUTABLECLASS_OB(call, prms) \
1.50 { \
1.51 using namespace ::SourceHook; \
1.52 - MemFuncInfo mfi; \
1.53 + MemFuncInfo mfi = {true, -1, 0, 0}; \
1.54 GetFuncInfo(m_CC->GetThisPtr(), m_MFP, mfi); \
1.55 void *origfunc = m_CC->GetOrigFunc(mfi.thisptroffs + mfi.vtbloffs, mfi.vtblindex); \
1.56 if (!origfunc) \