diff -r 08583103ba6f -r 093c72464b35 sourcehook/sourcehook.cpp --- a/sourcehook/sourcehook.cpp Sun Oct 07 23:00:38 2007 +0000 +++ b/sourcehook/sourcehook.cpp Mon Oct 08 14:20:51 2007 +0000 @@ -283,7 +283,9 @@ bool CVfnPtr::Patch(void *newValue) { if (!SetMemAccess(m_Ptr, sizeof(void*), SH_MEM_READ | SH_MEM_WRITE)) + { return false; + } *reinterpret_cast(m_Ptr) = newValue; @@ -793,6 +795,7 @@ if (oldctx->m_State == CHookContext::State_Ignore) { *statusPtr = MRES_IGNORED; + oldctx->m_CallOrig = true; oldctx->m_State = CHookContext::State_Dead; List &vfnptrList = static_cast(hi)->GetVfnPtrList(); @@ -957,7 +960,6 @@ ISHDelegate *CHookContext::GetNext() { CIface *pVPIface; - switch (m_State) { case State_Dead: