qedit: Check for S_OK when enumerating the source pin.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Gabriel Ivăncescu 2020-04-27 16:07:42 +03:00 committed by Alexandre Julliard
parent 317d5c9688
commit ba5afd8c30
1 changed files with 1 additions and 1 deletions

View File

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