From f35f259105ba919f12104678ff64da9c58b75686 Mon Sep 17 00:00:00 2001 From: Felix Nawothnig Date: Mon, 18 Jul 2005 09:06:22 +0000 Subject: [PATCH] Skip futile tests if CoGetClassObject fails. --- dlls/mshtml/tests/protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/mshtml/tests/protocol.c b/dlls/mshtml/tests/protocol.c index e744013e519..fdd71934887 100644 --- a/dlls/mshtml/tests/protocol.c +++ b/dlls/mshtml/tests/protocol.c @@ -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);