Commit f8e0d2f5 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

hlink: Call BindToObject with IID_IUnknown in IHlink_fnNavigate.

parent 8ca611a5
...@@ -487,15 +487,19 @@ static HRESULT WINAPI IHlink_fnNavigate(IHlink* iface, DWORD grfHLNF, LPBC pbc, ...@@ -487,15 +487,19 @@ static HRESULT WINAPI IHlink_fnNavigate(IHlink* iface, DWORD grfHLNF, LPBC pbc,
if (SUCCEEDED(r)) if (SUCCEEDED(r))
{ {
IBindCtx *bcxt; IBindCtx *bcxt;
IHlinkTarget *target = NULL; IUnknown *unk = NULL;
IHlinkTarget *target;
CreateBindCtx(0, &bcxt); CreateBindCtx(0, &bcxt);
RegisterBindStatusCallback(bcxt, pbsc, NULL, 0); RegisterBindStatusCallback(bcxt, pbsc, NULL, 0);
r = IMoniker_BindToObject(mon, bcxt, NULL, &IID_IHlinkTarget, r = IMoniker_BindToObject(mon, bcxt, NULL, &IID_IUnknown, (void**)&unk);
(LPVOID*)&target); if (r == S_OK)
TRACE("IHlinkTarget returned 0x%x\n", r); {
r = IUnknown_QueryInterface(unk, &IID_IHlinkTarget, (void**)&target);
IUnknown_Release(unk);
}
if (r == S_OK) if (r == S_OK)
{ {
IHlinkTarget_SetBrowseContext(target, phbc); IHlinkTarget_SetBrowseContext(target, phbc);
......
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