Rémi Bernon (@rbernon) commented about dlls/windows.devices.enumeration/tests/devices.c:
hr = IVectorView_DeviceInformation_get_Size( info_collection, &size );
todo_wine ok( SUCCEEDED( hr ), "got %#lx\n", hr );
for (idx = 0; idx < size ;idx++)
{
IDeviceInformation *info;
winetest_push_context("info_collection %u", idx);
hr = IVectorView_DeviceInformation_GetAt( info_collection, idx, &info );
ok( SUCCEEDED( hr ), "got %#lx\n", hr);
if (SUCCEEDED( hr ))
{
UINT32 idx2 = 0;
boolean found = FALSE;
test_DeviceInformation_obj(__LINE__, info);
IDeviceInformation_Release( info );
hr = IVectorView_DeviceInformation_IndexOf( info_collection, info, &idx2, &found );
You're using info after releasing your reference here.