Skip to content

Commit fe8c232

Browse files
committed
DSU: fix SDL_JoystickID warning on MSVC
1 parent 81c4ef3 commit fe8c232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/dsu/SDL_dsujoystick_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ static SDL_JoystickID DSU_JoystickGetDeviceInstanceID(int device_index)
405405
}
406406
SDL_UnlockMutex(mutex);
407407

408-
return -1;
408+
return 0;
409409
}
410410

411411
static bool DSU_JoystickOpen(SDL_Joystick *joystick, int device_index)

0 commit comments

Comments
 (0)