From e2077c46ce334453c567382cb254d1010f733fb1 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 13 Aug 2023 12:24:12 +0200 Subject: Improved jmpbuff handling a bit --- src/tools/callback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tools/callback.c') 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; -- cgit 1.4.1