Commit 6834367a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msctf/tests: Fix a crash on unsupported interface.

parent fde61d46
...@@ -1427,13 +1427,16 @@ static void test_startSession(void) ...@@ -1427,13 +1427,16 @@ static void test_startSession(void)
ok(cid == cid2, "Second activate client ID does not match\n"); ok(cid == cid2, "Second activate client ID does not match\n");
hr = ITfThreadMgr_QueryInterface(g_tm, &IID_ITfThreadMgrEx, (void **)&tmex); hr = ITfThreadMgr_QueryInterface(g_tm, &IID_ITfThreadMgrEx, (void **)&tmex);
ok(SUCCEEDED(hr), "Unable to acquire ITfThreadMgrEx interface\n"); if (hr == S_OK)
{
hr = ITfThreadMgrEx_ActivateEx(tmex, &cid2, 0); hr = ITfThreadMgrEx_ActivateEx(tmex, &cid2, 0);
ok(SUCCEEDED(hr), "Failed to Activate\n"); ok(SUCCEEDED(hr), "Failed to Activate\n");
ok(cid == cid2, "ActivateEx client ID does not match\n"); ok(cid == cid2, "ActivateEx client ID does not match\n");
ITfThreadMgrEx_Release(tmex); ITfThreadMgrEx_Release(tmex);
}
else
win_skip("ITfThreadMgrEx is not supported\n");
hr = ITfThreadMgr_Deactivate(g_tm); hr = ITfThreadMgr_Deactivate(g_tm);
ok(SUCCEEDED(hr), "Failed to Deactivate\n"); ok(SUCCEEDED(hr), "Failed to Deactivate\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