quartz/tests: Add a couple of tests for return values (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
07b629e8e4
commit
b356673d01
|
@ -422,8 +422,10 @@ static void test_filter_graph(void)
|
||||||
}
|
}
|
||||||
ok(hr == S_OK, "Could not create null renderer: %08x\n", hr);
|
ok(hr == S_OK, "Could not create null renderer: %08x\n", hr);
|
||||||
|
|
||||||
IBaseFilter_EnumPins(pnull, &nullenum);
|
hr = IBaseFilter_EnumPins(pnull, &nullenum);
|
||||||
IEnumPins_Next(nullenum, 1, &nullpin, NULL);
|
ok(hr == S_OK, "Failed to enum pins, hr %#x.\n", hr);
|
||||||
|
hr = IEnumPins_Next(nullenum, 1, &nullpin, NULL);
|
||||||
|
ok(hr == S_OK, "Failed to get next pin, hr %#x.\n", hr);
|
||||||
IEnumPins_Release(nullenum);
|
IEnumPins_Release(nullenum);
|
||||||
IPin_QueryDirection(nullpin, &dir);
|
IPin_QueryDirection(nullpin, &dir);
|
||||||
|
|
||||||
|
@ -489,7 +491,9 @@ fail2:
|
||||||
if (dir == PINDIR_OUTPUT)
|
if (dir == PINDIR_OUTPUT)
|
||||||
{
|
{
|
||||||
PIN_INFO info;
|
PIN_INFO info;
|
||||||
IPin_QueryPinInfo(to, &info);
|
|
||||||
|
hr = IPin_QueryPinInfo(to, &info);
|
||||||
|
ok(hr == S_OK, "Failed to query pin info, hr %#x.\n", hr);
|
||||||
|
|
||||||
/* Release twice: Once normal, second from the
|
/* Release twice: Once normal, second from the
|
||||||
* previous while loop
|
* previous while loop
|
||||||
|
|
Loading…
Reference in New Issue