Skip to content

Commit fe16c62

Browse files
committed
Fix crash when enumerating Steam Controllers
Closes #13746
1 parent 2d855e1 commit fe16c62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/joystick/hidapi/SDL_hidapi_steam.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,11 @@ static bool HIDAPI_DriverSteam_IsSupportedDevice(SDL_HIDAPI_Device *device, cons
10381038
return false;
10391039
}
10401040

1041+
if (!device) {
1042+
// Might be supported by this driver, enumerate and find out
1043+
return true;
1044+
}
1045+
10411046
if (device->is_bluetooth) {
10421047
return true;
10431048
}

0 commit comments

Comments
 (0)