oleaut32/tests: make sure return values are used (LLVM/Clang)

Austin English austinenglish at gmail.com
Mon Feb 7 16:58:43 CST 2011


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/oleaut32/tests/olefont.c b/dlls/oleaut32/tests/olefont.c
index 0b08432..57f1367 100644
--- a/dlls/oleaut32/tests/olefont.c
+++ b/dlls/oleaut32/tests/olefont.c
@@ -112,6 +112,7 @@ static void test_ifont_sizes(LONG lo_size, LONG hi_size,
 	ok(hres == S_OK, "%s: IFont_get_hFont returns 0x%08x instead of S_OK.\n",
 		test_name, hres);
 	hres = GetObject (hfont, sizeof(LOGFONT), &lf);
+        ok(hres == OBJ_FONT, "got obj type %d\n", hres);
 	ok(lf.lfHeight == hfont_height,
 		"%s: hFont has lf.lfHeight=%d, expected %d.\n",
 		test_name, lf.lfHeight, hfont_height);
@@ -315,6 +316,7 @@ static void test_font_events_disp(void)
     dispparams.cArgs = 1;
     dispparams.rgvarg = &vararg;
     hr = IFontDisp_Invoke(pFontDisp, DISPID_FONT_BOLD, &IID_NULL, 0, DISPATCH_PROPERTYPUT, &dispparams, NULL, NULL, NULL);
+    ok(hr == S_OK, "IFontDisp_Invoke return 0x%08x instead of S_OK.\n", hr);
 
     IFontDisp_Release(pFontDisp);
 


More information about the wine-patches mailing list