mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-05 11:08:16 +00:00
Fix crash in xinput with verbose logging
This commit is contained in:
parent
b70683fa08
commit
d98962189a
@ -181,6 +181,9 @@ const char *xinput_joypad_name(unsigned pad)
|
||||
return XBOX_ONE_CONTROLLER_NAMES[xuser];
|
||||
#endif
|
||||
|
||||
if (xuser < 0)
|
||||
return NULL;
|
||||
|
||||
return XBOX_CONTROLLER_NAMES[xuser];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user