From d8a955b035fecdaf7b6d0bd1b3c27102e93865e4 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Thu, 4 Jul 2024 22:56:07 +0200 Subject: [PATCH] Don't panic if usb_debug_trigger() is called from other than selected HC type. --- bochs/gui/siminterface.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bochs/gui/siminterface.cc b/bochs/gui/siminterface.cc index f43ea9d23..17b252cb0 100644 --- a/bochs/gui/siminterface.cc +++ b/bochs/gui/siminterface.cc @@ -961,12 +961,8 @@ void bx_real_sim_c::register_usb_debug_type(int type) void bx_real_sim_c::usb_debug_trigger(int type, int trigger, int wParam, int lParam) { - if (usb_debug_type != USB_DEBUG_NONE) { - if (type == usb_debug_type) { - win32_usb_trigger(type, trigger, wParam, lParam); - } else { - BX_PANIC(("USB debugger triggered with wrong type %d", type)); - } + if ((usb_debug_type != USB_DEBUG_NONE) && (type == usb_debug_type)) { + win32_usb_trigger(type, trigger, wParam, lParam); } }