From ced61a987e7c4409f2f4607bd9ef11935ffd4a5e Mon Sep 17 00:00:00 2001 From: Haru Date: Thu, 1 May 2014 04:24:49 +0200 Subject: 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 --- tools/HPMHookGen/HPMHookGen.pl | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') 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 -- cgit v1.2.3-60-g2f50