urlmon: Don't depend on QueryService returning NULL on failure.

This commit is contained in:
Jacek Caban 2009-06-27 00:28:30 +02:00 committed by Alexandre Julliard
parent a2dd6fba53
commit 1e9c996711

View file

@ -51,9 +51,9 @@ static void *get_callback_iface(BindStatusCallback *This, REFIID riid)
hres = IBindStatusCallback_QueryInterface(This->callback, riid, (void**)&ret);
if(FAILED(hres) && This->serv_prov)
IServiceProvider_QueryService(This->serv_prov, riid, riid, &ret);
hres = IServiceProvider_QueryService(This->serv_prov, riid, riid, &ret);
return ret;
return SUCCEEDED(hres) ? ret : NULL;
}
#define STATUSCLB_THIS(iface) DEFINE_THIS(BindStatusCallback, BindStatusCallback, iface)