devInst->data.DevInst = devInfo->devId;
devInst->data.Reserved = (ULONG_PTR)devInfo;
SETUPDI_GuidToString(guid, classGuidStr);
- SetupDiSetDeviceRegistryPropertyW((HDEVINFO)set,
- &devInst->data, SPDRP_CLASSGUID, (const BYTE *)classGuidStr,
+ SetupDiSetDeviceRegistryPropertyW(set, &devInst->data,
+ SPDRP_CLASSGUID, (const BYTE *)classGuidStr,
lstrlenW(classGuidStr) * sizeof(WCHAR));
if (dev) *dev = &devInst->data;
ret = TRUE;
list->cDevices = 0;
list_init(&list->devices);
- return (HDEVINFO)list;
+ return list;
}
/***********************************************************************
"\\\\?\\root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}\\";
PSP_DEVICE_INTERFACE_DETAIL_DATA_A detail = NULL;
- detail = (PSP_DEVICE_INTERFACE_DETAIL_DATA_A)HeapAlloc(GetProcessHeap(), 0, dwSize);
+ detail = HeapAlloc(GetProcessHeap(), 0, dwSize);
if (detail)
{
detail->cbSize = FIELD_OFFSET(SP_DEVICE_INTERFACE_DETAIL_DATA_A, DevicePath) + sizeof(char);