Fixed detecting Bluetooth raw input devices, which have device names longer than 128 characters

This commit is contained in:
Sam Lantinga 2020-11-27 05:53:52 -08:00
parent 849ce80376
commit 2931eccd84
2 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ SDL_IsXInputDevice(Uint16 vendor, Uint16 product)
for (i = 0; i < raw_device_count; i++) {
RID_DEVICE_INFO rdi;
char devName[128];
char devName[MAX_PATH];
UINT rdiSize = sizeof(rdi);
UINT nameSize = SDL_arraysize(devName);

View File

@ -171,7 +171,7 @@ GuessXInputDevice(Uint8 userid, Uint16 *pVID, Uint16 *pPID, Uint16 *pVersion)
for (i = 0; i < device_count; i++) {
RID_DEVICE_INFO rdi;
char devName[128];
char devName[MAX_PATH];
UINT rdiSize = sizeof(rdi);
UINT nameSize = SDL_arraysize(devName);