summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-28 02:48:47 +0100
committerHaru <haru@dotalux.com>2016-04-30 15:57:50 +0200
commit89e0550e4dee7a5076f7b12d335468fd3bb4f26d (patch)
treee703a93cd87ed0b7522b3606bdcba576df439120 /tools/HPMHookGen
parent7eb4ae4d1f846c1877d3650e4548cb0cb141a2d1 (diff)
downloadhercules-89e0550e4dee7a5076f7b12d335468fd3bb4f26d.tar.gz
hercules-89e0550e4dee7a5076f7b12d335468fd3bb4f26d.tar.bz2
hercules-89e0550e4dee7a5076f7b12d335468fd3bb4f26d.tar.xz
hercules-89e0550e4dee7a5076f7b12d335468fd3bb4f26d.zip
Added one level of indirection to all variables in pre-hook functions
- Previously, only scalar variables had their indirection level increased. Now pointers do as well (this allows users to override const pointers) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index c357d0dbd..577536313 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -187,7 +187,7 @@ sub parse($$) {
$post_code = "va_end(${callvar});";
$var = '';
$variadic = 1;
- } elsif (!$indirectionlvl) { # Increase indirection level when necessary
+ } else { # Increase indirection level when necessary
$dereference = '*';
$addressof = '&';
}