Bernhard K��lbl (@besentv) commented about dlls/windows.devices.enumeration/tests/devices.c:
- hr = RoGetActivationFactory(str, &IID_IActivationFactory, (void **)&factory);
- ok(hr == S_OK || broken(hr == REGDB_E_CLASSNOTREG), "got hr %#lx\n", hr);
- WindowsDeleteString(str);
- if (hr == REGDB_E_CLASSNOTREG)
- {
win_skip("%s runtimeclass, not registered.\n", wine_dbgstr_w(device_info_name));
return;
- }
- hr = IActivationFactory_QueryInterface(factory, &IID_IInspectable, (void **)&inspectable);
- ok(hr == S_OK, "got hr %#lx\n", hr);
- hr = IActivationFactory_QueryInterface(factory, &IID_IDeviceInformationStatics2, (void **)&device_info_statics2);
- ok(hr == S_OK || broken(hr == E_NOINTERFACE), "got hr %#lx\n", hr);
- IActivationFactory_Release(factory);
- if (hr != S_OK)
`if (FAILED( hr ))`