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>
This commit is contained in:
parent
c4e35b9bce
commit
317d5c9688
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue