diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-09-16 00:48:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-15 18:48:11 +0200 |
| commit | c4f5b7c062462412f82abe50e90e016d0b8f0ffa (patch) | |
| tree | b1833a548c74f54178e98f14343bdea5231177f1 | |
| parent | 04c1998f1c4579c2bff99c91f4765798ce2714c6 (diff) | |
| download | box64-c4f5b7c062462412f82abe50e90e016d0b8f0ffa.tar.gz box64-c4f5b7c062462412f82abe50e90e016d0b8f0ffa.zip | |
[BOX32][TRACE] Fixed chdir tracing (#3021)
| -rwxr-xr-x | src/emu/x86int3.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |