mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Added a defensive check against XINPUTGETCAPABILITIES being NULL
This should never happen, but it does, possibly due to a data segment overwrite elsewhere.
This commit is contained in:
@@ -218,7 +218,7 @@ void SDL_XINPUT_JoystickDetect(JoyStick_DeviceData **pContext)
|
||||
{
|
||||
int iuserid;
|
||||
|
||||
if (!s_bXInputEnabled) {
|
||||
if (!s_bXInputEnabled || !XINPUTGETCAPABILITIES) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user