Commit bbb9c273 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

hlink: Return requested interface when creating IHlink instance.

parent 759e2eff
...@@ -1130,6 +1130,7 @@ static const IBindStatusCallbackVtbl bind_callback_vtbl = ...@@ -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) ...@@ -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;
} }
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