Austin English : oleaut32/tests: Make sure return values are used (LLVM/ Clang).

Alexandre Julliard julliard at winehq.org
Tue Feb 8 17:23:46 CST 2011


Module: wine
Branch: master
Commit: d2c4219c4d4abea2b73bb2e4b696caf0be1822c0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d2c4219c4d4abea2b73bb2e4b696caf0be1822c0

Author: Austin English <austinenglish at gmail.com>
Date:   Mon Feb  7 14:58:43 2011 -0800

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

---

 dlls/oleaut32/tests/olefont.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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-cvs mailing list