about summary refs log tree commit diff stats
path: root/src/tools/callback.c
diff options
context:
space:
mode:
authorptitSeb <seebastien.chev@gmail.com>2023-08-13 12:24:12 +0200
committerptitSeb <seebastien.chev@gmail.com>2023-08-13 12:24:12 +0200
commite2077c46ce334453c567382cb254d1010f733fb1 (patch)
tree84d23a64d703baa121230b17d9f4ae9d99a4f4a1 /src/tools/callback.c
parente8972efca192e988cdd72fc765ef001defe9a5a4 (diff)
downloadbox64-e2077c46ce334453c567382cb254d1010f733fb1.tar.gz
box64-e2077c46ce334453c567382cb254d1010f733fb1.zip
Improved jmpbuff handling a bit
Diffstat (limited to 'src/tools/callback.c')
-rw-r--r--src/tools/callback.c6
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;