mirror of https://github.com/libsdl-org/SDL
Fixed detecting Bluetooth raw input devices, which have device names longer than 128 characters
This commit is contained in:
parent
849ce80376
commit
2931eccd84
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue