hlink: Return requested interface when creating IHlink instance.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
759e2eff8b
commit
bbb9c273d2
|
@ -1130,6 +1130,7 @@ static const IBindStatusCallbackVtbl bind_callback_vtbl =
|
||||||
HRESULT HLink_Constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv)
|
HRESULT HLink_Constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
HlinkImpl * hl;
|
HlinkImpl * hl;
|
||||||
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("unkOut=%p riid=%s\n", pUnkOuter, debugstr_guid(riid));
|
TRACE("unkOut=%p riid=%s\n", pUnkOuter, debugstr_guid(riid));
|
||||||
*ppv = NULL;
|
*ppv = NULL;
|
||||||
|
@ -1146,6 +1147,8 @@ HRESULT HLink_Constructor(IUnknown *pUnkOuter, REFIID riid, void **ppv)
|
||||||
hl->IDataObject_iface.lpVtbl = &dovt;
|
hl->IDataObject_iface.lpVtbl = &dovt;
|
||||||
hl->IBindStatusCallback_iface.lpVtbl = &bind_callback_vtbl;
|
hl->IBindStatusCallback_iface.lpVtbl = &bind_callback_vtbl;
|
||||||
|
|
||||||
*ppv = hl;
|
hr = IHlink_QueryInterface(&hl->IHlink_iface, riid, ppv);
|
||||||
return S_OK;
|
IHlink_Release(&hl->IHlink_iface);
|
||||||
|
|
||||||
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue