diff --git a/qemu/accel/tcg/translate-all.c b/qemu/accel/tcg/translate-all.c index 999321a7..835c054f 100644 --- a/qemu/accel/tcg/translate-all.c +++ b/qemu/accel/tcg/translate-all.c @@ -909,7 +909,7 @@ static LONG __fastcall code_gen_buffer_handler(PEXCEPTION_POINTERS ptr, struct u static inline void may_remove_handler(struct uc_struct *uc) { if (uc->seh_closure) { if (uc->seh_handle) { - RemoveVectoredContinueHandler(uc->seh_handle); + RemoveVectoredExceptionHandler(uc->seh_handle); } VirtualFree(uc->seh_closure, 0, MEM_RELEASE); }