Commit f54042df authored by Nicolas Le Cam's avatar Nicolas Le Cam Committed by Alexandre Julliard

msctf/tests: Fix uninitialized variable warning.

parent 3f012024
......@@ -1460,10 +1460,12 @@ static void test_startSession(void)
ok(g_dm == dmtest,"Expected DocumentMgr not focused\n");
ITfDocumentMgr_Release(dmtest);
TextStoreACP_Constructor((IUnknown**)&ts);
hr = ITfDocumentMgr_CreateContext(g_dm, cid, 0, (IUnknown*)ts, &cxt, &editCookie);
ok(SUCCEEDED(hr),"CreateContext Failed\n");
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");
}
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