summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-05-01 04:24:49 +0200
committerHaru <haru@dotalux.com>2014-05-01 04:24:49 +0200
commitced61a987e7c4409f2f4607bd9ef11935ffd4a5e (patch)
tree2cc08bb2f8159d9011f833bded1adea8f85f527d
parent8444621ef253b598e506b5cfaa9ade8a79398297 (diff)
downloadhercules-ced61a987e7c4409f2f4607bd9ef11935ffd4a5e.tar.gz
hercules-ced61a987e7c4409f2f4607bd9ef11935ffd4a5e.tar.bz2
hercules-ced61a987e7c4409f2f4607bd9ef11935ffd4a5e.tar.xz
hercules-ced61a987e7c4409f2f4607bd9ef11935ffd4a5e.zip
Corrected an issue when calling hookStop() from a post-hook
- Now hookStop() will do absolutely nothing if called from a post-hook, instead of causing unexpected effects on the next pre-hook execution. Signed-off-by: Haru <haru@dotalux.com>
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index 72025f556..3e2a11e5d 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -550,6 +550,7 @@ $if->{handlerdef} {$if->{notes}
int hIndex = 0;${initialization}
if( HPMHooks.count.$if->{hname}_pre ) {
$if->{predef}
+ *HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.$if->{hname}_pre; hIndex++ ) {$beforeblock3
preHookFunc = HPMHooks.list.$if->{hname}_pre[hIndex].func;
$if->{precall}$afterblock3