ソースを参照

Fixed warning C4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data

Sam Lantinga 1 年間 前
コミット
35d335e61f
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/video/windows/SDL_windowsevents.c

+ 1 - 1
src/video/windows/SDL_windowsevents.c

@@ -748,7 +748,7 @@ static void GetDeviceName(HDEVINFO devinfo, const char *instance, char *name, si
             continue;
             continue;
 
 
         if (SDL_strcasecmp(instance, DeviceInstanceId) == 0) {
         if (SDL_strcasecmp(instance, DeviceInstanceId) == 0) {
-            SetupDiGetDeviceRegistryPropertyA(devinfo, &data, SPDRP_DEVICEDESC, NULL, (PBYTE)name, len, NULL);
+            SetupDiGetDeviceRegistryPropertyA(devinfo, &data, SPDRP_DEVICEDESC, NULL, (PBYTE)name, (DWORD)len, NULL);
             return;
             return;
         }
         }
     }
     }