about summary refs log tree commit diff stats
path: root/src/emu/x86int3.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-09-01 17:09:54 +0200
committerptitSeb <sebastien.chev@gmail.com>2024-09-01 17:09:54 +0200
commit759cef6e015a7fe99bc94cd70da92e8f00584db9 (patch)
tree9461b79c03e5cbe0c7454109a53aebd952b2ec44 /src/emu/x86int3.c
parent02364151bcba524825838140f3d1a61db59dab88 (diff)
downloadbox64-759cef6e015a7fe99bc94cd70da92e8f00584db9.tar.gz
box64-759cef6e015a7fe99bc94cd70da92e8f00584db9.zip
[BOX32] Fixes and hacks to get steamcmd shows the prompt
Diffstat (limited to 'src/emu/x86int3.c')
-rwxr-xr-xsrc/emu/x86int3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x86int3.c b/src/emu/x86int3.c
index b2d800c9..3dbc5461 100755
--- a/src/emu/x86int3.c
+++ b/src/emu/x86int3.c
@@ -289,7 +289,7 @@ void x86Int3(x64emu_t* emu, uintptr_t* addr)
                     post = 5;
                     snprintf(buff, 255, "%04d|%p: Calling %s(%p, \"%s\")", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, from_ptrv(*(ptr_t*)from_ptr(R_ESP+4)), from_ptrv(*(ptr_t*)from_ptr(R_ESP+8)));
                 } else  if(!strcmp(s, "syscall")) {
-                    snprintf(buff, 255, "%04d|%p: Calling %s(%d, %p, %p, %p...)", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, *(int32_t*)from_ptr(R_ESP+4), from_ptrv(*(ptr_t*)from_ptr(R_ESP+8)), *(void**)from_ptr(R_ESP+12), *(void**)from_ptr(R_ESP+16));
+                    snprintf(buff, 255, "%04d|%p: Calling %s(%d, %p, %p, %p...)", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, *(int32_t*)from_ptr(R_ESP+4), from_ptrv(*(ptr_t*)from_ptr(R_ESP+8)), from_ptrv(*(ptr_t*)from_ptr(R_ESP+12)), from_ptrv(*(ptr_t*)from_ptr(R_ESP+16)));
                     perr = 1;
                 } else {
                     snprintf(buff, 255, "%04d|%p: Calling %s (%08X, %08X, %08X...)", tid, from_ptrv(*(ptr_t*)from_ptr(R_ESP)), s, *(uint32_t*)from_ptr(R_ESP+4), *(uint32_t*)from_ptr(R_ESP+8), *(uint32_t*)from_ptr(R_ESP+12));