Skip to content

Commit

Permalink
Better log for my_open64
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed May 12, 2021
1 parent f5554de commit 0c1ee23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emu/x86int3.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void x86Int3(x86emu_t* emu)
} else if(!strcmp(s, "opendir")) {
snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\")", tid, *(void**)(R_ESP), s, *(char**)(R_ESP+4));
perr = 1;
} else if(strstr(s, "__open")==s || strcmp(s, "open")==0) {
} else if(strstr(s, "__open")==s || !strcmp(s, "open") || !strcmp(s, "my_open64")) {
tmp = *(char**)(R_ESP+4);
snprintf(buff, 255, "%04d|%p: Calling %s(\"%s\", %d (,%d))", tid, *(void**)(R_ESP), s, (tmp)?tmp:"(nil)", *(int*)(R_ESP+8), *(int*)(R_ESP+12));
perr = 1;
Expand Down

0 comments on commit 0c1ee23

Please sign in to comment.