windows.gaming.input: Fix IIterator_IInspectable_MoveNext returne value.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Rémi Bernon 2022-03-14 10:28:14 +01:00 committed by Alexandre Julliard
parent 87ada5544e
commit ace5d0adb8
2 changed files with 2 additions and 3 deletions

View File

@ -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 );

View File

@ -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,