mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Fix segfault when passing invalid arguments
This commit is contained in:
parent
d0b7c96fdb
commit
f1f147965b
1 changed files with 1 additions and 1 deletions
|
@ -688,7 +688,7 @@ void Shutdown()
|
||||||
StopScanThread();
|
StopScanThread();
|
||||||
#if GCADAPTER_USE_LIBUSB_IMPLEMENTATION
|
#if GCADAPTER_USE_LIBUSB_IMPLEMENTATION
|
||||||
#if LIBUSB_API_HAS_HOTPLUG
|
#if LIBUSB_API_HAS_HOTPLUG
|
||||||
if (s_libusb_context->IsValid() && s_libusb_hotplug_enabled)
|
if (s_libusb_context && s_libusb_context->IsValid() && s_libusb_hotplug_enabled)
|
||||||
libusb_hotplug_deregister_callback(*s_libusb_context, s_hotplug_handle);
|
libusb_hotplug_deregister_callback(*s_libusb_context, s_hotplug_handle);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue