oleaut32/tests: Make sure return values are used (LLVM/Clang).
This commit is contained in:
parent
2164bb7a7f
commit
d2c4219c4d
|
@ -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",
|
ok(hres == S_OK, "%s: IFont_get_hFont returns 0x%08x instead of S_OK.\n",
|
||||||
test_name, hres);
|
test_name, hres);
|
||||||
hres = GetObject (hfont, sizeof(LOGFONT), &lf);
|
hres = GetObject (hfont, sizeof(LOGFONT), &lf);
|
||||||
|
ok(hres == OBJ_FONT, "got obj type %d\n", hres);
|
||||||
ok(lf.lfHeight == hfont_height,
|
ok(lf.lfHeight == hfont_height,
|
||||||
"%s: hFont has lf.lfHeight=%d, expected %d.\n",
|
"%s: hFont has lf.lfHeight=%d, expected %d.\n",
|
||||||
test_name, lf.lfHeight, hfont_height);
|
test_name, lf.lfHeight, hfont_height);
|
||||||
|
@ -315,6 +316,7 @@ static void test_font_events_disp(void)
|
||||||
dispparams.cArgs = 1;
|
dispparams.cArgs = 1;
|
||||||
dispparams.rgvarg = &vararg;
|
dispparams.rgvarg = &vararg;
|
||||||
hr = IFontDisp_Invoke(pFontDisp, DISPID_FONT_BOLD, &IID_NULL, 0, DISPATCH_PROPERTYPUT, &dispparams, NULL, NULL, NULL);
|
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);
|
IFontDisp_Release(pFontDisp);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue