From c4f5b7c062462412f82abe50e90e016d0b8f0ffa Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Tue, 16 Sep 2025 00:48:11 +0800 Subject: [BOX32][TRACE] Fixed chdir tracing (#3021) --- src/emu/x86int3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/x86int3.c b/src/emu/x86int3.c index ceec800b..0de43798 100755 --- a/src/emu/x86int3.c +++ b/src/emu/x86int3.c @@ -144,7 +144,7 @@ void x86Int3(x64emu_t* emu, uintptr_t* addr) perr = 2; } else if(!strcmp(s, "chdir")) { pu32=(uint32_t*)from_ptrv(R_ESP+4); - snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, from_ptriv(R_ESP), (char *)s, pu32?((pu32==(uint32_t*)1)?"/1/":(char*)pu32):"/0/"); + snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, from_ptriv(R_ESP), (char *)s, pu32?((pu32==(uint32_t*)1)?"/1/":(char*)(uintptr_t)(*pu32)):"/0/"); } else if(!strcmp(s, "poll")) { pu32=from_ptrv(*(ptr_t*)from_ptrv(R_ESP+4)); char tmp[50]; -- cgit 1.4.1