10 Jul
2025
10 Jul
'25
4:42 p.m.
Connor McAdams (@cmcadams) commented about dlls/setupapi/tests/devinst.c:
+ DWORD reg_size; + DEVPROPTYPE devprop_type; + BYTE *devprop_value; + DWORD devprop_size; + + /* Error returned by SetupDiSetDevicePropertyW. */ + DWORD error; +}; + +static LONG dword = 0xdeadbeef; +static WCHAR strw[] = L"dummy"; +static WCHAR multi_strw[] = L"dummy1\0dummy2\0"; + +/* SPDRP_* properties that can be set and have an associated DEVPROPKEY. + * The property key is {{a45c254e-df1c-4efd-8020-67d146a850e0}, reg_prop + 2} */ +static struct reg_property reg_props[] = { These should be `static const`, along with the other test constants you define.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8515#note_109481