Rémi Bernon (@rbernon) commented about dlls/setupapi/tests/devinst.c:
- set = SetupDiGetClassDevsExW(&GUID_DEVCLASS_DISPLAY, NULL, 0, DIGCF_PRESENT, 0, NULL, 0);
- ok(set != INVALID_HANDLE_VALUE, "SetupDiGetClassDevsExW failed with %lu.\n", GetLastError());
- ZeroMemory(&devinfodata, sizeof(SP_DEVINFO_DATA));
- devinfodata.cbSize = sizeof(SP_DEVINFO_DATA);
- i = 0;
- next = SetupDiEnumDeviceInfo(set, i, &devinfodata);
- ok(next, "Failed getting at least one element from SetupDiEnumDeviceInfo with error %lu.\n", GetLastError());
- while (next)
- {
ZeroMemory(buf, sizeof(buf));
len = 0;
ret = SetupDiGetDevicePropertyW(set, &devinfodata, &DEVPKEY_Device_DriverDate, &proptype, (BYTE *)buf, sizeof(buf), &len, 0);
todo_wine ok(ret, "getting DEVPKEY_Device_DriverDate failed with error %lu.\n", GetLastError());
You could add `proptype` checks too, would show that this property should be of type `DEVPROP_TYPE_FILETIME` (in this MR it's DEVPROP_TYPE_BYTE), and that other props should be DEVPROP_TYPE_STRING.