diff -r e3d55ad50ba6 -r 08583103ba6f sourcehook/sourcehook.cpp --- a/sourcehook/sourcehook.cpp Sun Oct 07 22:45:51 2007 +0000 +++ b/sourcehook/sourcehook.cpp Sun Oct 07 23:00:38 2007 +0000 @@ -733,6 +733,25 @@ m_ContextStack.pop(); } + void *CSourceHookImpl::GetOrigVfnPtrEntry(void *vfnptr) + { + for (CHookManContainerList::iterator hmcl_iter = m_HookManContainers.begin(); + hmcl_iter != m_HookManContainers.end(); ++hmcl_iter) + { + for (CHookManagerContainer::iterator hookmaniter = hmcl_iter->begin(); + hookmaniter != hmcl_iter->end(); ++hookmaniter) + { + for (List::iterator vfnptr_iter = hookmaniter->GetVfnPtrList().begin(); + vfnptr_iter != hookmaniter->GetVfnPtrList().end(); ++vfnptr_iter) + { + if (vfnptr_iter->GetPtr() == vfnptr) + return vfnptr_iter->GetOrigEntry(); + } + } + } + return NULL; + } + void CSourceHookImpl::DoRecall() { CHookContext newCtx;