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?