29 Sep
2025
29 Sep
'25
11:01 a.m.
Rémi Bernon (@rbernon) commented about dlls/windows.devices.enumeration/tests/devices.c:
+struct iterable_hstring +{ + IIterable_HSTRING IIterable_HSTRING_iface; + LONG ref; + + ULONG count; + HSTRING values[]; +}; + +C_ASSERT( sizeof( struct iterable_hstring ) == offsetof( struct iterable_hstring, values[0] ) ); + +static inline struct iterable_hstring *impl_from_IIterable_HSTRING( IIterable_HSTRING *iface ) +{ + return CONTAINING_RECORD( iface, struct iterable_hstring, IIterable_HSTRING_iface ); +}
Should we maybe copy and use winrt `vector.c` in the tests instead? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9045#note_116985