core-legacy/sourcehook/sourcehook.cpp
changeset 812 4e9a2779bb2d
parent 767 fd3ff8d792ce
     1.1 --- a/core-legacy/sourcehook/sourcehook.cpp	Sun Oct 28 15:51:05 2012 -0400
     1.2 +++ b/core-legacy/sourcehook/sourcehook.cpp	Wed Nov 07 21:45:11 2012 -0500
     1.3 @@ -366,7 +366,7 @@
     1.4  			CVfnPtr vfp(cur_vfnptr, &m_OneIgnore);
     1.5  
     1.6  			// Alter vtable entry
     1.7 -			if (!MakePageWritable(cur_vtptr))
     1.8 +			if (!MakePageWritable(cur_vfnptr))
     1.9  				return 0;
    1.10  
    1.11  			*reinterpret_cast<void**>(cur_vfnptr) = *reinterpret_cast<void**>(hookman->m_HookfuncVfnptr);