diff -r 782de98f8b6e -r fd3ff8d792ce core-legacy/sourcehook/sourcehook.cpp --- a/core-legacy/sourcehook/sourcehook.cpp Sat Oct 08 16:29:03 2011 -0700 +++ b/core-legacy/sourcehook/sourcehook.cpp Sat Oct 15 22:16:50 2011 -0700 @@ -366,7 +366,7 @@ CVfnPtr vfp(cur_vfnptr, &m_OneIgnore); // Alter vtable entry - if (!SetMemAccess(cur_vtptr, sizeof(void*) * (tmp.m_VtblIdx + 1), SH_MEM_READ | SH_MEM_WRITE)) + if (!MakePageWritable(cur_vtptr)) return 0; *reinterpret_cast(cur_vfnptr) = *reinterpret_cast(hookman->m_HookfuncVfnptr);