diff -r 862e6dddd0ee -r 9c0613cb6f50 sourcehook/sourcehook.cpp --- a/sourcehook/sourcehook.cpp Sun Oct 14 12:15:09 2007 +0000 +++ b/sourcehook/sourcehook.cpp Sun Oct 14 12:28:28 2007 +0000 @@ -749,7 +749,8 @@ oldctx->m_State = CHookContext::State_Dead; List &vfnptr_list = static_cast(hi)->GetVfnPtrList(); - for (List::iterator vfnptr_iter = vfnptr_list.begin(); + List::iterator vfnptr_iter; + for (vfnptr_iter = vfnptr_list.begin(); vfnptr_iter != vfnptr_list.end(); ++vfnptr_iter) { if (**vfnptr_iter == vfnptr) @@ -805,7 +806,8 @@ pCtx->pIface = NULL; List &vfnptr_list = static_cast(hi)->GetVfnPtrList(); - for (List::iterator vfnptr_iter = vfnptr_list.begin(); + List::iterator vfnptr_iter; + for (vfnptr_iter = vfnptr_list.begin(); vfnptr_iter != vfnptr_list.end(); ++vfnptr_iter) { if (**vfnptr_iter == vfnptr)