[PATCH] quartz/tests: Add a couple of tests for return values (Coverity)
Nikolay Sivov
nsivov at codeweavers.com
Mon Nov 13 12:56:39 CST 2017
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/quartz/tests/avisplitter.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/dlls/quartz/tests/avisplitter.c b/dlls/quartz/tests/avisplitter.c
index 23167b59b8..8bafb14157 100644
--- a/dlls/quartz/tests/avisplitter.c
+++ b/dlls/quartz/tests/avisplitter.c
@@ -422,8 +422,10 @@ static void test_filter_graph(void)
}
ok(hr == S_OK, "Could not create null renderer: %08x\n", hr);
- IBaseFilter_EnumPins(pnull, &nullenum);
- IEnumPins_Next(nullenum, 1, &nullpin, NULL);
+ hr = IBaseFilter_EnumPins(pnull, &nullenum);
+ 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);
IPin_QueryDirection(nullpin, &dir);
@@ -489,7 +491,9 @@ fail2:
if (dir == PINDIR_OUTPUT)
{
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
* previous while loop
--
2.15.0
More information about the wine-devel
mailing list