Skip to content

Commit 63173cd

Browse files
wiiu/joystick: Add missing early return if gamepad reading fails
1 parent 7243fdc commit 63173cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)