From 8e312a6a59dbef494c460dd2f61e813991270d50 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 12 Nov 2020 15:56:33 -0800 Subject: [PATCH] Fixed detecting Bluetooth XInput controllers on Windows --- src/joystick/windows/SDL_dinputjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/windows/SDL_dinputjoystick.c b/src/joystick/windows/SDL_dinputjoystick.c index 69ebd6fac..daa7590ac 100644 --- a/src/joystick/windows/SDL_dinputjoystick.c +++ b/src/joystick/windows/SDL_dinputjoystick.c @@ -419,7 +419,7 @@ SDL_IsXInputDevice(const WCHAR *name, const GUID* pGuidProductFromDirectInput) for (i = 0; i < SDL_RawDevListCount; i++) { RID_DEVICE_INFO rdi; - char devName[128]; + char devName[MAX_PATH]; UINT rdiSize = sizeof(rdi); UINT nameSize = SDL_arraysize(devName);