sourcehook/sh_memfuncinfo.h
changeset 37 f4d069676dc2
parent 34 11e62a912700
child 49 ec95d7681407
     1.1 --- a/sourcehook/sh_memfuncinfo.h	Fri Apr 22 14:38:04 2005 +0000
     1.2 +++ b/sourcehook/sh_memfuncinfo.h	Sat Apr 23 16:07:14 2005 +0000
     1.3 @@ -65,9 +65,9 @@
     1.4  			};
     1.5  			int delta;
     1.6  		};
     1.7 -		template<class MFP> static inline void GetFuncInfo(MFP *mfp, MemFuncInfo &out)
     1.8 +		template<class MFP> static inline void GetFuncInfo(MFP mfp, MemFuncInfo &out)
     1.9  		{
    1.10 -			GCC_MemFunPtr *mfp_detail = (GCC_MemFunPtr*)mfp;
    1.11 +			GCC_MemFunPtr *mfp_detail = (GCC_MemFunPtr*)&mfp;
    1.12  			out.thisptroffs = mfp_detail->delta;
    1.13  			if (mfp_detail->vtable_index_plus1 & 1)
    1.14  			{