Skip to content

Commit

Permalink
We are comparing 16-bit values
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 24, 2016
1 parent e93e91f commit e9983c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/SDL_joystick.c
Expand Up @@ -822,11 +822,11 @@ static void GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint16 *vendor, Uint16 *p

/* If the GUID fits the form of BUS 0000 VENDOR 0000 PRODUCT 0000, return the data */
if (/* guid16[0] is device bus type */
guid16[1] == 0x00 &&
guid16[1] == 0x0000 &&
/* guid16[2] is vendor ID */
guid16[3] == 0x00 &&
guid16[3] == 0x0000 &&
/* guid16[4] is product ID */
guid16[5] == 0x00
guid16[5] == 0x0000
/* guid16[6] is product version */
) {
if (vendor) {
Expand Down

0 comments on commit e9983c7

Please sign in to comment.