From 5606a22a9c6101daadff6d4e39431d1fb2d823fc Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Thu, 21 Apr 2005 11:07:15 +0000 Subject: [PATCH] Fixed a bug where trying to hook functions that had a pointer return type would result in some type conversion compiler errors --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4033 --- sourcehook/sourcehook.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sourcehook/sourcehook.h b/sourcehook/sourcehook.h index 94ddd2f..4c25198 100644 --- a/sourcehook/sourcehook.h +++ b/sourcehook/sourcehook.h @@ -389,7 +389,9 @@ namespace SourceHook /* 2) Declare some vars and set it up */ \ std::list &prelist = ci.hooks_pre; \ std::list &postlist = ci.hooks_post; \ - rettype orig_ret, override_ret, plugin_ret; \ + rettype orig_ret; \ + rettype override_ret; \ + rettype plugin_ret; \ META_RES &cur_res = SH_GLOB_SHPTR->GetCurResRef(); \ META_RES &prev_res = SH_GLOB_SHPTR->GetPrevResRef(); \ META_RES &status = SH_GLOB_SHPTR->GetStatusRef(); \