Skip to content

Commit

Permalink
wiiu/joystick: Add missing early return if gamepad reading fails
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryOderNichts committed Jan 1, 2025
1 parent 7243fdc commit 63173cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/joystick/wiiu/SDL_wiiujoystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ static void WIIU_JoystickUpdate(SDL_Joystick *joystick)
SDL_PrivateJoystickRemoved(joystick->instance_id);
/* Unlink Gamepad, device_index, instance_id */
WIIU_RemoveDevice(WIIU_DEVICE_GAMEPAD);
return;
} else if (error != VPAD_READ_SUCCESS) {
return;
}
Expand Down

0 comments on commit 63173cd

Please sign in to comment.