src/joystick/windows/SDL_dinputjoystick.c
changeset 10600 ae286e502a00
parent 10595 9da2701eeb4a
child 10724 5ea5f198879f
     1.1 --- a/src/joystick/windows/SDL_dinputjoystick.c	Fri Nov 11 03:18:16 2016 -0800
     1.2 +++ b/src/joystick/windows/SDL_dinputjoystick.c	Fri Nov 11 03:35:37 2016 -0800
     1.3 @@ -403,7 +403,7 @@
     1.4      SDL_memset(pNewJoystick->guid.data, 0, sizeof(pNewJoystick->guid.data));
     1.5  
     1.6      guid16 = (Uint16 *)pNewJoystick->guid.data;
     1.7 -    if (SDL_memcmp(&pdidInstance->guidProduct.Data4[2], "VIDPID", 6) == 0) {
     1.8 +    if (SDL_memcmp(&pdidInstance->guidProduct.Data4[2], "PIDVID", 6) == 0) {
     1.9          *guid16++ = SDL_SwapLE16(BUS_USB);
    1.10          *guid16++ = 0;
    1.11          *guid16++ = SDL_SwapLE16((Uint16)LOWORD(pdidInstance->guidProduct.Data1)); /* vendor */