Fixed build warning

(cherry picked from commit 5007b96363)
This commit is contained in:
Sam Lantinga 2023-05-28 19:23:56 -07:00
parent 1da5b2e488
commit f74549ef2e
1 changed files with 1 additions and 1 deletions

View File

@ -1604,7 +1604,7 @@ static void RAWINPUT_UpdateOtherAPIs(SDL_Joystick *joystick)
if (!ctx->wgi_correlated) { if (!ctx->wgi_correlated) {
SDL_bool new_correlation_count = 0; SDL_bool new_correlation_count = 0;
if (RAWINPUT_MissingWindowsGamingInputSlot()) { if (RAWINPUT_MissingWindowsGamingInputSlot()) {
Uint8 correlation_id; Uint8 correlation_id = 0;
WindowsGamingInputGamepadState *slot_idx = NULL; WindowsGamingInputGamepadState *slot_idx = NULL;
if (RAWINPUT_GuessWindowsGamingInputSlot(&match_state_xinput, &correlation_id, &slot_idx, xinput_correlated)) { if (RAWINPUT_GuessWindowsGamingInputSlot(&match_state_xinput, &correlation_id, &slot_idx, xinput_correlated)) {
/* we match exactly one WindowsGamingInput device */ /* we match exactly one WindowsGamingInput device */