mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
urlmon: Don't depend on QueryService returning NULL on failure.
This commit is contained in:
parent
a2dd6fba53
commit
1e9c996711
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue