1.1 --- a/sourcehook/sourcehook.cpp Sun Oct 14 12:15:09 2007 +0000
1.2 +++ b/sourcehook/sourcehook.cpp Sun Oct 14 12:28:28 2007 +0000
1.3 @@ -749,7 +749,8 @@
1.4 oldctx->m_State = CHookContext::State_Dead;
1.5
1.6 List<CVfnPtr*> &vfnptr_list = static_cast<CHookManager*>(hi)->GetVfnPtrList();
1.7 - for (List<CVfnPtr*>::iterator vfnptr_iter = vfnptr_list.begin();
1.8 + List<CVfnPtr*>::iterator vfnptr_iter;
1.9 + for (vfnptr_iter = vfnptr_list.begin();
1.10 vfnptr_iter != vfnptr_list.end(); ++vfnptr_iter)
1.11 {
1.12 if (**vfnptr_iter == vfnptr)
1.13 @@ -805,7 +806,8 @@
1.14 pCtx->pIface = NULL;
1.15
1.16 List<CVfnPtr*> &vfnptr_list = static_cast<CHookManager*>(hi)->GetVfnPtrList();
1.17 - for (List<CVfnPtr*>::iterator vfnptr_iter = vfnptr_list.begin();
1.18 + List<CVfnPtr*>::iterator vfnptr_iter;
1.19 + for (vfnptr_iter = vfnptr_list.begin();
1.20 vfnptr_iter != vfnptr_list.end(); ++vfnptr_iter)
1.21 {
1.22 if (**vfnptr_iter == vfnptr)