Commit 1e9c9967 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

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

parent a2dd6fba
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment