Small (probably cosmetic) fix for CloneEmu helper function

This commit is contained in:
ptitSeb 2024-10-31 10:43:02 +01:00
parent 3ae6992641
commit 63e35941e2

View File

@ -262,6 +262,7 @@ void CloneEmu(x64emu_t *newemu, const x64emu_t* emu)
newemu->mxcsr = emu->mxcsr;
newemu->quit = emu->quit;
newemu->error = emu->error;
newemu->x64emu_parity_tab = emu->x64emu_parity_tab;
// adapt R_RSP to new stack frame
uintptr_t oldst = (uintptr_t)((emu->init_stack)?emu->init_stack:emu->context->stack);
uintptr_t newst = (uintptr_t)((newemu->init_stack)?newemu->init_stack:newemu->context->stack);