dxdiagn/tests: Fix some test failures on a clean W2K3.

This commit is contained in:
Paul Vriens 2010-01-13 08:25:15 +01:00 committed by Alexandre Julliard
parent ff4047a956
commit 16d161bc95
1 changed files with 6 additions and 2 deletions

View File

@ -32,7 +32,9 @@ static void test_Initialize(void)
hr = CoCreateInstance(&CLSID_DxDiagProvider, NULL, CLSCTX_INPROC_SERVER,
&IID_IDxDiagProvider, (LPVOID*)&pddp);
ok(hr == S_OK, "Creating a IDxDiagProvider instance failed with %x\n", hr);
ok(hr == S_OK ||
broken(hr == REGDB_E_CLASSNOTREG), /* Clean W2K3 */
"Creating a IDxDiagProvider instance failed with %x\n", hr);
if (FAILED(hr))
{
skip("Failed to create a IDxDiagProvider instance\n");
@ -97,7 +99,9 @@ static void test_GetRootContainer(void)
hr = CoCreateInstance(&CLSID_DxDiagProvider, NULL, CLSCTX_INPROC_SERVER,
&IID_IDxDiagProvider, (LPVOID*)&pddp);
ok(hr == S_OK, "Creating a IDxDiagProvider instance failed with %x\n", hr);
ok(hr == S_OK ||
broken(hr == REGDB_E_CLASSNOTREG), /* Clean W2K3 */
"Creating a IDxDiagProvider instance failed with %x\n", hr);
if (FAILED(hr))
{
skip("Failed to create a IDxDiagProvider instance\n");