Commit ace5d0ad authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

windows.gaming.input: Fix IIterator_IInspectable_MoveNext returne value.

parent 87ada554
......@@ -1095,7 +1095,6 @@ static void test_windows_gaming_input(void)
ok( ret == TRUE, "got HasCurrent %u\n", ret );
hr = IIterator_RawGameController_MoveNext( iterator, &ret );
ok( hr == S_OK, "First returned %#lx\n", hr );
todo_wine
ok( ret == FALSE, "got MoveNext %u\n", ret );
hr = IIterator_RawGameController_get_HasCurrent( iterator, &ret );
ok( hr == S_OK, "First returned %#lx\n", hr );
......
......@@ -126,8 +126,8 @@ static HRESULT WINAPI iterator_MoveNext( IIterator_IInspectable *iface, BOOL *va
FIXME("\n");
if ((*value = impl->index < impl->size)) impl->index++;
return S_OK;
if (impl->index < impl->size) impl->index++;
return IIterator_IInspectable_get_HasCurrent( iface, value );
}
static HRESULT WINAPI iterator_GetMany( IIterator_IInspectable *iface, UINT32 items_size,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment