Commit 251ab17a authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

ole32/tests: Add more tests for CoIncrementMTAUsage/CoDecrementMTAUsage.

parent 9e4524ff
......@@ -4098,6 +4098,25 @@ static void test_mta_usage(void)
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
test_apt_type(APTTYPE_CURRENT, APTTYPEQUALIFIER_NONE);
hr = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
test_apt_type(APTTYPE_MAINSTA, APTTYPEQUALIFIER_NONE);
cookie = 0;
hr = pCoIncrementMTAUsage(&cookie);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(cookie != NULL, "Unexpected cookie %p.\n", cookie);
test_apt_type(APTTYPE_MAINSTA, APTTYPEQUALIFIER_NONE);
hr = pCoDecrementMTAUsage(cookie);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
CoUninitialize();
test_apt_type(APTTYPE_CURRENT, APTTYPEQUALIFIER_NONE);
}
static void test_CoCreateInstanceFromApp(void)
......
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