Commit ba5afd8c authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

qedit: Check for S_OK when enumerating the source pin.

parent 317d5c96
......@@ -145,7 +145,7 @@ static HRESULT find_splitter(MediaDetImpl *detector)
}
hr = IEnumPins_Next(enum_pins, 1, &source_pin, NULL);
IEnumPins_Release(enum_pins);
if (FAILED(hr))
if (hr != S_OK)
{
ERR("Failed to get source pin, hr %#x.\n", hr);
return hr;
......
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