msxml3/tests: Skip tests when XMLView object fails to create.

This commit is contained in:
Piotr Caban 2012-03-12 20:41:32 +01:00 committed by Alexandre Julliard
parent 9e10eee67b
commit 55d34f470f

View File

@ -40,8 +40,8 @@ static void test_QueryInterface(void)
hres = CoCreateInstance(&CLSID_XMLView, NULL, CLSCTX_INPROC_SERVER|CLSCTX_INPROC_HANDLER,
&IID_IUnknown, (void**)&xmlview);
if(hres == REGDB_E_CLASSNOTREG) {
win_skip("XMLView class not registered\n");
if(FAILED(hres)) {
win_skip("Failed to create XMLView instance\n");
return;
}
ok(hres == S_OK, "CoCreateInstance returned %x, expected S_OK\n", hres);