diff options
| author | ptitSeb <seebastien.chev@gmail.com> | 2023-08-13 12:24:12 +0200 |
|---|---|---|
| committer | ptitSeb <seebastien.chev@gmail.com> | 2023-08-13 12:24:12 +0200 |
| commit | e2077c46ce334453c567382cb254d1010f733fb1 (patch) | |
| tree | 84d23a64d703baa121230b17d9f4ae9d99a4f4a1 /src/tools/callback.c | |
| parent | e8972efca192e988cdd72fc765ef001defe9a5a4 (diff) | |
| download | box64-e2077c46ce334453c567382cb254d1010f733fb1.tar.gz box64-e2077c46ce334453c567382cb254d1010f733fb1.zip | |
Improved jmpbuff handling a bit
Diffstat (limited to 'src/tools/callback.c')
| -rw-r--r-- | src/tools/callback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/callback.c b/src/tools/callback.c index f3a6bbbf..162c801f 100644 --- a/src/tools/callback.c +++ b/src/tools/callback.c @@ -233,10 +233,10 @@ uint64_t RunFunctionWithEmu(x64emu_t *emu, int QuitOnLongJump, uintptr_t fnc, in uintptr_t oldip = R_RIP; int old_quit = emu->quit; - int oldlong = emu->quitonlongjmp; + int oldlong = emu->flags.quitonlongjmp; emu->quit = 0; - emu->quitonlongjmp = QuitOnLongJump; + emu->flags.quitonlongjmp = QuitOnLongJump; DynaCall(emu, fnc); @@ -246,7 +246,7 @@ uint64_t RunFunctionWithEmu(x64emu_t *emu, int QuitOnLongJump, uintptr_t fnc, in } emu->quit = old_quit; - emu->quitonlongjmp = oldlong; + emu->flags.quitonlongjmp = oldlong; return R_RAX; |