mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-30 23:18:29 +00:00
Don't crash if SDL functions are passed a closed joystick or gamecontroller
This commit is contained in:
@@ -68,6 +68,8 @@ typedef struct _SDL_JoystickSensorInfo
|
||||
|
||||
struct _SDL_Joystick
|
||||
{
|
||||
const void *magic;
|
||||
|
||||
SDL_JoystickID instance_id; /* Device instance, monotonically increasing from 0 */
|
||||
char *name; /* Joystick name - system dependent */
|
||||
char *path; /* Joystick path - system dependent */
|
||||
|
Reference in New Issue
Block a user