diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2025-01-28 19:27:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 19:27:23 +0100 |
| commit | 0b7f9541d00674e10d618d98801f51bf19cc0b88 (patch) | |
| tree | b483fb3e25a5b35f1eb642c1dbc32682bc332bee /Source/Core/InputCommon/GCAdapter.cpp | |
| parent | f92f174450f0c34133b1e51777ff79b00bcb71b2 (diff) | |
| parent | f1f147965bd8e7f3fd89e12495451e003e9da395 (diff) | |
Merge pull request #13304 from JoshuaVandaele/argsegfault
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 |
