qedit: Check for S_OK when enumerating the splitter pin.

The splitter may return S_FALSE (no pins) and this caused a crash when it
somehow matched with the File Source (Async).

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:41 +03:00 committed by Alexandre Julliard
parent c4e35b9bce
commit 317d5c9688
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ static HRESULT find_splitter(MediaDetImpl *detector)
hr = IEnumPins_Next(enum_pins, 1, &splitter_pin, NULL);
IEnumPins_Release(enum_pins);
if (FAILED(hr))
if (hr != S_OK)
goto next;
hr = IPin_Connect(source_pin, splitter_pin, NULL);