diff options
Diffstat (limited to 'src')
| -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]; |