Skip to content

Commit 14b8973

Browse files
wiiu/joystick: Add missing early return if gamepad reading fails
1 parent c622563 commit 14b8973

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/joystick/wiiu/SDL_wiiujoystick.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,7 @@ static void WIIU_JoystickUpdate(SDL_Joystick *joystick)
457457
SDL_PrivateJoystickRemoved(joystick->instance_id);
458458
/* Unlink Gamepad, device_index, instance_id */
459459
WIIU_RemoveDevice(WIIU_DEVICE_GAMEPAD);
460+
return;
460461
} else if (error != VPAD_READ_SUCCESS) {
461462
return;
462463
}

0 commit comments

Comments
 (0)