Commit 8fa2b2d2 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

hlink: Always pass a bind context to IMoniker::GetDisplayName.

parent 2a0de948
...@@ -217,9 +217,12 @@ static HRESULT WINAPI IHlink_fnSetMonikerReference( IHlink* iface, ...@@ -217,9 +217,12 @@ static HRESULT WINAPI IHlink_fnSetMonikerReference( IHlink* iface,
This->Moniker = pmkTarget; This->Moniker = pmkTarget;
if (This->Moniker) if (This->Moniker)
{ {
IBindCtx *pbc;
LPOLESTR display_name; LPOLESTR display_name;
IMoniker_AddRef(This->Moniker); IMoniker_AddRef(This->Moniker);
IMoniker_GetDisplayName(This->Moniker, NULL, NULL, &display_name); CreateBindCtx( 0, &pbc);
IMoniker_GetDisplayName(This->Moniker, pbc, NULL, &display_name);
IBindCtx_Release(pbc);
This->absolute = display_name && strchrW(display_name, ':'); This->absolute = display_name && strchrW(display_name, ':');
CoTaskMemFree(display_name); CoTaskMemFree(display_name);
} }
......
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