Sfoglia il codice sorgente

Fixed detecting Bluetooth XInput controllers on Windows

Sam Lantinga 5 anni fa
parent
commit
8e312a6a59
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/joystick/windows/SDL_dinputjoystick.c

+ 1 - 1
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);