Skip to content

Commit

Permalink
Fix adding of XInput devices (thanks, Mitchell!)
Browse files Browse the repository at this point in the history
Partially fixes Bugzilla #2126.
  • Loading branch information
icculus committed Oct 20, 2013
1 parent ade13fd commit 5e74299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/windows/SDL_dxjoystick.c
Expand Up @@ -733,11 +733,11 @@ AddXInputDevice(const Uint8 userid, JoyStick_DeviceData **pContext)

pNewJoystick->pNext = SYS_Joystick;
SYS_Joystick = pNewJoystick;
return; /* already in the list. */
}

pPrevJoystick = pNewJoystick;
pNewJoystick = pNewJoystick->pNext;
return; /* already in the list. */
}

pNewJoystick = (JoyStick_DeviceData *) SDL_malloc(sizeof (JoyStick_DeviceData));
Expand Down

0 comments on commit 5e74299

Please sign in to comment.