Commit 985acda3 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

qcap/tests: Return cloned enumeration objects (Coverity).

parent 3237c5ed
......@@ -299,6 +299,7 @@ static HRESULT WINAPI SinkEnumPins_Clone(IEnumPins *iface, IEnumPins **ppEnum)
if (clone == NULL)
return E_OUTOFMEMORY;
clone->index = This->index;
*ppEnum = &clone->IEnumPins_iface;
return S_OK;
}
......@@ -971,6 +972,7 @@ static HRESULT WINAPI SourceEnumPins_Clone(IEnumPins *iface, IEnumPins **ppEnum)
if (clone == NULL)
return E_OUTOFMEMORY;
clone->index = This->index;
*ppEnum = &clone->IEnumPins_iface;
return S_OK;
}
......@@ -1087,6 +1089,7 @@ static HRESULT WINAPI SourceEnumMediaTypes_Clone(IEnumMediaTypes *iface, IEnumMe
if (clone == NULL)
return E_OUTOFMEMORY;
clone->index = This->index;
*ppEnum = &clone->IEnumMediaTypes_iface;
return S_OK;
}
......
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