src/joystick/windows/SDL_dxjoystick.c
changeset 7844 97fa86ce5a2e
parent 7831 214cd9137ea9
child 8093 b43765095a6f
     1.1 --- a/src/joystick/windows/SDL_dxjoystick.c	Sun Oct 20 10:39:26 2013 -0700
     1.2 +++ b/src/joystick/windows/SDL_dxjoystick.c	Sun Oct 20 15:40:20 2013 -0400
     1.3 @@ -733,11 +733,11 @@
     1.4  
     1.5              pNewJoystick->pNext = SYS_Joystick;
     1.6              SYS_Joystick = pNewJoystick;
     1.7 +            return;   /* already in the list. */
     1.8          }
     1.9  
    1.10          pPrevJoystick = pNewJoystick;
    1.11          pNewJoystick = pNewJoystick->pNext;
    1.12 -        return;   /* already in the list. */
    1.13      }
    1.14  
    1.15      pNewJoystick = (JoyStick_DeviceData *) SDL_malloc(sizeof (JoyStick_DeviceData));