Zhiyi Zhang (@zhiyi) commented about dlls/gdi32/tests/driver.c:
ok(ret, "Got unexpected ret %d, GetLastError() %lu, %s.\n", ret, GetLastError(), debugstr_w(device_id)); ok(type == DEVPROP_TYPE_UINT32, "Got type %ld.\n", type); } + + ret = SetupDiGetDevicePropertyW(set, &device_data, &DEVPKEY_Device_RemovalPolicy, &type, + (BYTE *)&value, sizeof(value), NULL, 0); + ok(ret, "Got unexpected ret %d, GetLastError() %lu, %s.\n", ret, GetLastError(), debugstr_w(device_id));
Please check type is indeed DEVPROP_TYPE_UINT32 because https://learn.microsoft.com/en-us/windows-hardware/drivers/install/devpkey-d... says it's DEVPROP_TYPE_INT32. MSDN is probably wrong because it says the same for DEVPKEY_Device_BusNumber. But better to verify it. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2449#note_28162