Commit aac4cc8f authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

msctf/tests: Return if the constructor fails. This avoids several clang warnings.

parent 5fb2267a
......@@ -1550,11 +1550,11 @@ static void test_startSession(void)
ITfDocumentMgr_Release(dmtest);
hr = TextStoreACP_Constructor((IUnknown**)&ts);
if (SUCCEEDED(hr))
{
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, (IUnknown*)ts, &cxt, &editCookie);
ok(SUCCEEDED(hr),"CreateContext Failed\n");
}
ok(SUCCEEDED(hr),"Constructor Failed\n");
if (FAILED(hr)) return;
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, (IUnknown*)ts, &cxt, &editCookie);
ok(SUCCEEDED(hr),"CreateContext Failed\n");
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, NULL, &cxt2, &editCookie);
ok(SUCCEEDED(hr),"CreateContext Failed\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment