Fixed getting the CRC of virtual joysticks without a VID/PID
(cherry picked from commitb40fb5c51e) (cherry picked from commit6089b35706)
This commit is contained in:
1 parent
52a14998a8
commit
ff4fd93f4c
1 file changed
+1
-1
@@ -1906,7 +1906,7 @@ void SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint16 *vendor, Uint16 *prod
|
|||||||
if (crc16) {
|
if (crc16) {
|
||||||
*crc16 = SDL_SwapLE16(guid16[1]);
|
*crc16 = SDL_SwapLE16(guid16[1]);
|
||||||
}
|
}
|
||||||
} else if (bus < ' ') {
|
} else if (bus < ' ' || bus == SDL_HARDWARE_BUS_VIRTUAL) {
|
||||||
/* This GUID fits the unknown VID/PID form:
|
/* This GUID fits the unknown VID/PID form:
|
||||||
* 16-bit bus
|
* 16-bit bus
|
||||||
* 16-bit CRC16 of the joystick name (can be zero)
|
* 16-bit CRC16 of the joystick name (can be zero)
|
||||||
|
|||||||
Reference in new issue
Block a user