msctf/tests: Fix uninitialized variable warning.

This commit is contained in:
Nicolas Le Cam 2011-04-26 03:14:34 +02:00 committed by Alexandre Julliard
parent 3f0120241b
commit f54042df66
1 changed files with 6 additions and 4 deletions

View File

@ -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");