From 8cba915bca8d48a7ac4d9571004975320f71a7ff Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Thu, 3 Apr 2025 21:48:04 +0800 Subject: Moved more functions to os.h (#2497) * Removed some unused function declarations * Moved more functions to os.h * review --- src/wrapped/wrappedlibc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wrapped') diff --git a/src/wrapped/wrappedlibc.c b/src/wrapped/wrappedlibc.c index 9685831c..68169d2f 100644 --- a/src/wrapped/wrappedlibc.c +++ b/src/wrapped/wrappedlibc.c @@ -47,6 +47,7 @@ #include "wrappedlibs.h" +#include "os.h" #include "box64stack.h" #include "x64emu.h" #include "box64cpu.h" @@ -3540,7 +3541,7 @@ EXPORT int my_backtrace_ip(x64emu_t* emu, void** buffer, int size) if (++idx < size) buffer[idx] = (void*)ret_addr; } else if (!success) { if(getProtection((uintptr_t)addr)&(PROT_READ)) { - if(getProtection((uintptr_t)addr-19) && *(uint8_t*)(addr-19)==0xCC && *(uint8_t*)(addr-19+1)=='S' && *(uint8_t*)(addr-19+2)=='C') { + if (getProtection((uintptr_t)addr - 19) && *(uint8_t*)(addr - 19) == 0xCC && IsBridgeSignature(*(uint8_t*)(addr - 19 + 1), *(uint8_t*)(addr - 19 + 2))) { buffer[idx-1] = (void*)(addr-19); success = 2; if(idx==1) -- cgit 1.4.1