Merge pull request #8037 from krzys-h/uwp

Fix crash in xinput with verbose logging
This commit is contained in:
Twinaphex 2019-01-18 20:21:52 +01:00 committed by GitHub
commit e4731d2b5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];
}