mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 17:10:12 +00:00
Merge pull request #8037 from krzys-h/uwp
Fix crash in xinput with verbose logging
This commit is contained in:
commit
e4731d2b5e
@ -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…
Reference in New Issue
Block a user