mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 01:16:26 +00:00
SDL_GetGamepadAppleSFSymbolsNameForAxis() returns NULL if the symbol isn't found
This commit is contained in:
@@ -3771,8 +3771,9 @@ const char *SDL_GetGamepadAppleSFSymbolsNameForAxis(SDL_Gamepad *gamepad, SDL_Ga
|
|||||||
}
|
}
|
||||||
SDL_UnlockJoysticks();
|
SDL_UnlockJoysticks();
|
||||||
|
|
||||||
|
if (retval && *retval) {
|
||||||
return retval;
|
return retval;
|
||||||
#else
|
}
|
||||||
return NULL;
|
#endif
|
||||||
#endif
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user