Skip futile tests if CoGetClassObject fails.

This commit is contained in:
Felix Nawothnig 2005-07-18 09:06:22 +00:00 committed by Alexandre Julliard
parent ea524defc9
commit f35f259105
1 changed files with 2 additions and 0 deletions

View File

@ -235,6 +235,8 @@ static void test_res_protocol(void)
hres = CoGetClassObject(&CLSID_ResProtocol, CLSCTX_INPROC_SERVER, NULL, &IID_IUnknown, (void**)&unk);
ok(hres == S_OK, "CoGetClassObject failed: %08lx\n", hres);
if(!SUCCEEDED(hres))
return;
hres = IUnknown_QueryInterface(unk, &IID_IInternetProtocolInfo, (void**)&protocol_info);
ok(hres == S_OK, "Could not get IInternetProtocolInfo interface: %08lx\n", hres);