Fixed thread-safety warning
This commit is contained in:
parent
ee806597b9
commit
0f80d47bbd
1 changed files with 2 additions and 0 deletions
|
@ -663,6 +663,8 @@ static void HIDAPI_UpdateJoystickSerial(SDL_HIDAPI_Device *device)
|
|||
{
|
||||
int i;
|
||||
|
||||
SDL_AssertJoysticksLocked();
|
||||
|
||||
for (i = 0; i < device->num_joysticks; ++i) {
|
||||
SDL_Joystick *joystick = SDL_GetJoystickFromInstanceID(device->joysticks[i]);
|
||||
if (joystick && device->serial) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue