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

main
Sam Lantinga 2024-03-25 11:46:47 -07:00
parent 43b8e9f681
commit 35d335e61f
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ static void GetDeviceName(HDEVINFO devinfo, const char *instance, char *name, si
continue;
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;
}
}