Connor McAdams (@cmcadams) commented about dlls/setupapi/tests/devinst.c:
+static const struct reg_property invalid_reg_props[] = { + { SPDRP_CAPABILITIES, REG_DWORD, (BYTE *)&dword, sizeof(dword), DEVPROP_TYPE_INT32, (BYTE *)&dword, sizeof(dword), ERROR_ACCESS_DENIED }, + { SPDRP_UI_NUMBER, REG_DWORD, (BYTE *)&dword, sizeof(dword), DEVPROP_TYPE_INT32, (BYTE *)&dword, sizeof(dword), ERROR_ACCESS_DENIED }, + { SPDRP_PHYSICAL_DEVICE_OBJECT_NAME, REG_SZ, (BYTE *)strw, sizeof(strw), DEVPROP_TYPE_STRING, (BYTE *)strw, sizeof(strw), ERROR_ACCESS_DENIED }, + { SPDRP_BASE_CONTAINERID, REG_SZ, (BYTE *)guid_strw, sizeof(guid_strw), DEVPROP_TYPE_GUID, (BYTE *)&guid, sizeof(guid), ERROR_INVALID_REG_PROPERTY }, +}; + static void test_device_property(void) { + static const struct property { + DEVPROPKEY key; + DEVPROPTYPE type; + BYTE *value; + DWORD size; + BOOL exists; + } inbuilt_props[] = {
} inbuilt_props[] = {
not a big deal but somehow there is an extra space here. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8515#note_109707