diff options
| author | Joshua Vandaƫle <joshua@vandaele.software> | 2025-01-24 11:47:52 +0100 |
|---|---|---|
| committer | Joshua Vandaƫle <joshua@vandaele.software> | 2025-01-24 20:52:33 +0100 |
| commit | f1f147965bd8e7f3fd89e12495451e003e9da395 (patch) | |
| tree | 2dbff0b64713b2530b9cb5b4007d7918bff9617d /Source/Core/InputCommon/GCAdapter.cpp | |
| parent | d0b7c96fdb7ea50d55bb3cf581e5820d7b27b7e1 (diff) | |
Fix segfault when passing invalid arguments
Diffstat (limited to 'Source/Core/InputCommon/GCAdapter.cpp')
| -rw-r--r-- | Source/Core/InputCommon/GCAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index bf7b1f136c..9da1548034 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -688,7 +688,7 @@ void Shutdown() StopScanThread(); #if GCADAPTER_USE_LIBUSB_IMPLEMENTATION #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); #endif #endif |
