mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fix crash when enumerating Steam Controllers
Closes https://github.com/libsdl-org/SDL/pull/13746
This commit is contained in:
@@ -1038,6 +1038,11 @@ static bool HIDAPI_DriverSteam_IsSupportedDevice(SDL_HIDAPI_Device *device, cons
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!device) {
|
||||||
|
// Might be supported by this driver, enumerate and find out
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (device->is_bluetooth) {
|
if (device->is_bluetooth) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user