diff --git a/bochs/iodev/usb/usb_common.cc b/bochs/iodev/usb/usb_common.cc index bd5931083..7ba4e1427 100644 --- a/bochs/iodev/usb/usb_common.cc +++ b/bochs/iodev/usb/usb_common.cc @@ -295,7 +295,7 @@ void usbdev_locator_c::cleanup() { #if BX_PLUGINS while (all != NULL) { - PLUG_unload_usb_plugin(usbmod_names[all->type]); + PLUG_unload_usb_plugin(all->type); } #endif }