msctf/tests: make sure return values are used (LLVM/Clang)
Austin English
austinenglish at gmail.com
Mon Jul 25 20:42:58 CDT 2011
--
-Austin
-------------- next part --------------
diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c
index 47065d1..312d3b2 100644
--- a/dlls/msctf/tests/inputprocessor.c
+++ b/dlls/msctf/tests/inputprocessor.c
@@ -1453,7 +1453,7 @@ static void test_startSession(void)
ok(SUCCEEDED(hr),"GetFocus Failed\n");
ok(g_dm == dmtest,"Expected DocumentMgr not focused\n");
- cnt = ITfDocumentMgr_Release(g_dm);
+ ITfDocumentMgr_Release(g_dm);
hr = ITfThreadMgr_GetFocus(g_tm,&dmtest);
ok(SUCCEEDED(hr),"GetFocus Failed\n");
@@ -1807,6 +1807,7 @@ TfEditCookie ec)
selection.style.fInterimChar = FALSE;
test_ACP_SetSelection = SINK_EXPECTED;
hr = ITfContext_SetSelection(cxt, ec, 1, &selection);
+ ok(SUCCEEDED(hr),"ITfContext_SetSelection failed\n");
sink_check_ok(&test_ACP_SetSelection,"SetSelection");
ITfRange_Release(range);
@@ -2010,6 +2011,7 @@ static void test_AssociateFocus(void)
test_OnSetFocus = SINK_OPTIONAL; /* Doesn't always fire on Win7 */
test_ACP_GetStatus = SINK_OPTIONAL;
hr = ITfThreadMgr_SetFocus(g_tm,NULL);
+ ok(SUCCEEDED(hr),"ITfThreadMgr_SetFocus failed\n");
sink_check_ok(&test_OnSetFocus,"OnSetFocus");
test_ACP_GetStatus = SINK_UNEXPECTED;
ITfDocumentMgr_Release(dmorig);
More information about the wine-patches
mailing list