mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
urlmon: Don't depend on QueryService returning NULL on failure.
This commit is contained in:
parent
a2dd6fba53
commit
1e9c996711
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user