diff -r d141174cd362 -r c27105949293 sourcehook/sourcehook.h --- a/sourcehook/sourcehook.h Thu Aug 10 21:07:07 2006 +0000 +++ b/sourcehook/sourcehook.h Sun Aug 13 11:34:30 2006 +0000 @@ -723,7 +723,7 @@ param->SetInfo(ms_MFI.vtbloffs, ms_MFI.vtblindex, \ reinterpret_cast(&ms_Proto)); \ \ - MemFuncInfo mfi; \ + MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(&SH_FHCls(ifacetype,ifacefunc,overload)::Func, mfi); \ param->SetHookfuncVfnptr( \ reinterpret_cast(reinterpret_cast(&ms_Inst) + mfi.vtbloffs)[mfi.vtblindex]); \ @@ -764,7 +764,7 @@ SH_FHCls(ifacetype,ifacefunc,overload)::FD handler) \ { \ using namespace ::SourceHook; \ - MemFuncInfo mfi; \ + MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(funcptr, mfi); \ if (mfi.thisptroffs < 0 || !mfi.isVirtual) \ return false; /* No non-virtual functions / virtual inheritance supported */ \ @@ -777,7 +777,7 @@ SH_FHCls(ifacetype,ifacefunc,overload)::FD handler) \ { \ using namespace ::SourceHook; \ - MemFuncInfo mfi; \ + MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(funcptr, mfi); \ if (mfi.thisptroffs < 0) \ return false; /* No virtual inheritance supported */ \ @@ -818,7 +818,7 @@ param->SetInfo(ms_MFI.vtbloffs, ms_MFI.vtblindex, \ reinterpret_cast(&ms_Proto)); \ \ - MemFuncInfo mfi; \ + MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(&SH_MFHCls(hookname)::Func, mfi); \ param->SetHookfuncVfnptr( \ reinterpret_cast(reinterpret_cast(&ms_Inst) + mfi.vtbloffs)[mfi.vtblindex]); \ @@ -3012,7 +3012,7 @@ # define SH_MAKE_EXECUTABLECLASS_OB(call, prms) \ { \ using namespace ::SourceHook; \ - MemFuncInfo mfi; \ + MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(m_CC->GetThisPtr(), m_MFP, mfi); \ void *origfunc = m_CC->GetOrigFunc(mfi.thisptroffs + mfi.vtbloffs, mfi.vtblindex); \ if (!origfunc) \ @@ -3051,7 +3051,7 @@ # define SH_MAKE_EXECUTABLECLASS_OB(call, prms) \ { \ using namespace ::SourceHook; \ - MemFuncInfo mfi; \ + MemFuncInfo mfi = {true, -1, 0, 0}; \ GetFuncInfo(m_CC->GetThisPtr(), m_MFP, mfi); \ void *origfunc = m_CC->GetOrigFunc(mfi.thisptroffs + mfi.vtbloffs, mfi.vtblindex); \ if (!origfunc) \