Rémi Bernon (@rbernon) commented about dlls/windows.devices.enumeration/tests/devices.c:
} winetest_pop_context(); }
devices = calloc( 1, sizeof( *devices ) * size );
ok( !!devices, "Unable to allocate array\n" );
if (devices)
{
UINT32 copied = 0;
hr = IVectorView_DeviceInformation_GetMany( info_collection, 0, size, devices, &copied );
todo_wine ok( SUCCEEDED( hr ), "got %#lx\n", hr );
if (SUCCEEDED( hr ))
The if is unnecessary.