More defensive coding against dangling device pointers

This commit is contained in:
Sam Lantinga
2023-04-06 11:33:27 -07:00
parent 1a20ccb289
commit acadb6f873
2 changed files with 5 additions and 1 deletions

View File

@@ -50,6 +50,7 @@ struct SDL_HIDAPI_DeviceDriver;
typedef struct SDL_HIDAPI_Device
{
const void *magic;
char *name;
char *path;
Uint16 vendor_id;