29 Sep
2025
29 Sep
'25
11:01 a.m.
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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9045#note_116984