Rémi Bernon (@rbernon) commented about dlls/windows.devices.enumeration/main.c:
-static HRESULT device_watcher_create( HSTRING filter, IDeviceWatcher **out ) +static HRESULT WINAPI append_devpropcompkeys_from_names( IIterable_HSTRING *names_iterable, DEVPROPCOMPKEY **keys, ULONG *keys_len ) {
- IIterator_HSTRING *names;
- boolean valid;
- HRESULT hr;
- if (FAILED(hr = IIterable_HSTRING_First( names_iterable, &names ))) return hr;
- if (FAILED(hr = IIterator_HSTRING_get_HasCurrent( names, &valid )))
- {
IIterator_HSTRING_Release( names );
return hr;
- }
- while (valid && SUCCEEDED(hr))
- {
```suggestion:-6+0 hr = IIterator_HSTRING_get_HasCurrent( names, &valid ); while (SUCCEEDED(hr) && valid) { ```