1.1 --- a/sourcehook/sourcehook.cpp Sun Oct 07 23:00:38 2007 +0000
1.2 +++ b/sourcehook/sourcehook.cpp Mon Oct 08 14:20:51 2007 +0000
1.3 @@ -283,7 +283,9 @@
1.4 bool CVfnPtr::Patch(void *newValue)
1.5 {
1.6 if (!SetMemAccess(m_Ptr, sizeof(void*), SH_MEM_READ | SH_MEM_WRITE))
1.7 + {
1.8 return false;
1.9 + }
1.10
1.11 *reinterpret_cast<void**>(m_Ptr) = newValue;
1.12
1.13 @@ -793,6 +795,7 @@
1.14 if (oldctx->m_State == CHookContext::State_Ignore)
1.15 {
1.16 *statusPtr = MRES_IGNORED;
1.17 + oldctx->m_CallOrig = true;
1.18 oldctx->m_State = CHookContext::State_Dead;
1.19
1.20 List<CVfnPtr> &vfnptrList = static_cast<CHookManager*>(hi)->GetVfnPtrList();
1.21 @@ -957,7 +960,6 @@
1.22 ISHDelegate *CHookContext::GetNext()
1.23 {
1.24 CIface *pVPIface;
1.25 -
1.26 switch (m_State)
1.27 {
1.28 case State_Dead: