msctf/tests: Return if the constructor fails. This avoids several clang warnings.
Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5fb2267a78
commit
aac4cc8fbb
|
@ -1550,11 +1550,11 @@ static void test_startSession(void)
|
||||||
ITfDocumentMgr_Release(dmtest);
|
ITfDocumentMgr_Release(dmtest);
|
||||||
|
|
||||||
hr = TextStoreACP_Constructor((IUnknown**)&ts);
|
hr = TextStoreACP_Constructor((IUnknown**)&ts);
|
||||||
if (SUCCEEDED(hr))
|
ok(SUCCEEDED(hr),"Constructor Failed\n");
|
||||||
{
|
if (FAILED(hr)) return;
|
||||||
|
|
||||||
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, (IUnknown*)ts, &cxt, &editCookie);
|
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, (IUnknown*)ts, &cxt, &editCookie);
|
||||||
ok(SUCCEEDED(hr),"CreateContext Failed\n");
|
ok(SUCCEEDED(hr),"CreateContext Failed\n");
|
||||||
}
|
|
||||||
|
|
||||||
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, NULL, &cxt2, &editCookie);
|
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, NULL, &cxt2, &editCookie);
|
||||||
ok(SUCCEEDED(hr),"CreateContext Failed\n");
|
ok(SUCCEEDED(hr),"CreateContext Failed\n");
|
||||||
|
|
Loading…
Reference in New Issue