about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-02-16 12:16:47 +0100
committerptitSeb <sebastien.chev@gmail.com>2023-02-16 12:16:47 +0100
commit476612d8f8720cded5878ad5c05486b8eef354d6 (patch)
tree3c9b8aede63d690adb561241d740802e9e616124 /src
parentbd769c926162d7b8699b2c9ef5df63bd20510896 (diff)
downloadbox64-476612d8f8720cded5878ad5c05486b8eef354d6.tar.gz
box64-476612d8f8720cded5878ad5c05486b8eef354d6.zip
Small change to mallochook detector
Diffstat (limited to 'src')
-rw-r--r--src/mallochook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mallochook.c b/src/mallochook.c
index 7f4c3b01..4faa8c08 100644
--- a/src/mallochook.c
+++ b/src/mallochook.c
@@ -600,7 +600,7 @@ void checkHookedSymbols(lib_t *maplib, elfheader_t* h)
             uintptr_t offs = h->DynSym[i].st_value + h->delta;
             size_t sz = h->DynSym[i].st_size;
             if(bind!=STB_LOCAL && bind!=STB_WEAK && sz>=sizeof(reloc_jmp_t)) {
-                #define GO(A, B) if(!strcmp(symname, #A)) ++hooked; if(!strcmp(symname, "scalable_" #A)) ++hooked; if(!strcmp(symname, "__TBB_internal_" #A)) ++hooked;
+                #define GO(A, B) if(!strcmp(symname, #A)) ++hooked; else if(!strcmp(symname, "scalable_" #A)) ++hooked; else if(!strcmp(symname, "__TBB_internal_" #A)) ++hooked;
                 #define GO2(A, B)
                 SUPER()
                 #undef GO