Rémi Bernon (@rbernon) commented about dlls/windows.devices.enumeration/tests/devices.c:
};
+static void test_DeviceInformation_prop_guid( IDeviceInformation *info, const WCHAR *prop, const GUID *guid_val ) +{
- IMapView_HSTRING_IInspectable *props;
- IInspectable *inspectable;
- IReference_GUID *val;
- GUID guid = {0};
- HSTRING str;
- HRESULT hr;
- hr = IDeviceInformation_get_Properties( info, &props );
- ok( hr == S_OK, "got hr %#lx\n", hr );
- hr = WindowsCreateString( prop, wcslen( prop ), &str );
- ok( hr == S_OK, "got hr %#lx\n", hr );
You're leaking str here.