From e9983c7b0f7dd84f145fce14e318edafa3f4b327 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 24 Nov 2016 11:53:23 -0800 Subject: [PATCH] We are comparing 16-bit values --- src/joystick/SDL_joystick.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c index 4debab617..355fd4cff 100644 --- a/src/joystick/SDL_joystick.c +++ b/src/joystick/SDL_joystick.c @@ -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) {