Commit 68d03ba8 authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

quartz: Return E_INVALIDARG when cursor is NULL in IEnumFilters::Skip().

parent d918c6a4
......@@ -326,7 +326,7 @@ static HRESULT WINAPI EnumFilters_Skip(IEnumFilters *iface, ULONG count)
return VFW_E_ENUM_OUT_OF_SYNC;
if (!enum_filters->cursor)
return S_FALSE;
return E_INVALIDARG;
while (count--)
{
......
......@@ -677,6 +677,12 @@ static void test_enum_filters(void)
hr = IEnumFilters_Next(enum1, 1, filters, NULL);
ok(hr == S_FALSE, "Got hr %#x.\n", hr);
hr = IEnumFilters_Skip(enum1, 0);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
hr = IEnumFilters_Skip(enum1, 1);
ok(hr == E_INVALIDARG, "Got hr %#x.\n", hr);
IFilterGraph2_AddFilter(graph, filter1, NULL);
IFilterGraph2_AddFilter(graph, filter2, NULL);
......
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