From efb3c48d8a1a8a69c1f35ccd9ab2c3d0fd86cac7 Mon Sep 17 00:00:00 2001 From: Austin English Date: Thu, 10 Feb 2011 15:15:59 -0800 Subject: [PATCH] ole32/tests: Make sure to use return values (LLVM/Clang). --- dlls/ole32/tests/moniker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c index eb7973e4584..54a5f8cb764 100644 --- a/dlls/ole32/tests/moniker.c +++ b/dlls/ole32/tests/moniker.c @@ -1012,7 +1012,6 @@ static void test_MkParseDisplayName(void) hr = IEnumMoniker_QueryInterface(spEM1, &IID_IUnknown, (void*) &lpEM1); /* Register a couple of Monikers and check is ok */ ok(hr==0, "IEnumMoniker_QueryInterface hr %08x %p\n", hr, lpEM1); - hr = MK_E_NOOBJECT; matchCnt = count_moniker_matches(pbc, spEM1); trace("Number of matches is %i\n", matchCnt); @@ -1276,6 +1275,7 @@ static void test_moniker( IROTData_Release(rotdata); hr = CreateStreamOnHGlobal(NULL, TRUE, &stream); + ok_ole_success(hr, CreateStreamOnHGlobal); /* Saving */ @@ -1456,6 +1456,7 @@ static void test_file_moniker(WCHAR* path) ok_ole_success(hr, CreateFileMoniker); hr = CreateStreamOnHGlobal(NULL, TRUE, &stream); + ok_ole_success(hr, CreateStreamOnHGlobal); /* Marshal */ hr = CoMarshalInterface(stream, &IID_IMoniker, (IUnknown *)moniker1, MSHCTX_INPROC, NULL, MSHLFLAGS_NORMAL);