mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-20 20:00:42 +00:00
Fixed warning C4267: 'function': conversion from 'size_t' to 'DWORD', possible loss of data
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user