}
/* get the location string */
- if (GetDeviceLocationString(HwDevInfo->DevInfoData.DevInst,
+ if (GetDeviceLocationString(HwDevInfo->ClassDevInfo->hDevInfo,
+ &HwDevInfo->DevInfoData,
0,
szBuffer,
sizeof(szBuffer) / sizeof(szBuffer[0])) &&
case WM_DESTROY:
{
+ /* zero hpd pointer in window data, because it can be used later (WM_DESTROY has not to be last message) */
+ SetWindowLongPtr(hwndDlg, DWL_USER, (DWORD_PTR)NULL);
+
/* free devices list */
FreeDevicesList(hpd);