ole32: Pass correct display name in ParseDisplayName() for item moniker.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
dee2fd1147
commit
1f648ddd7a
|
@ -777,7 +777,6 @@ static HRESULT WINAPI ItemMonikerImpl_ParseDisplayName(IMoniker *iface, IBindCtx
|
||||||
ItemMonikerImpl *This = impl_from_IMoniker(iface);
|
ItemMonikerImpl *This = impl_from_IMoniker(iface);
|
||||||
IOleItemContainer *container;
|
IOleItemContainer *container;
|
||||||
IParseDisplayName *parser;
|
IParseDisplayName *parser;
|
||||||
LPOLESTR displayName;
|
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("%p, %p, %p, %s, %p, %p.\n", iface, pbc, pmkToLeft, debugstr_w(displayname), eaten, ppmkOut);
|
TRACE("%p, %p, %p, %s, %p, %p.\n", iface, pbc, pmkToLeft, debugstr_w(displayname), eaten, ppmkOut);
|
||||||
|
@ -792,9 +791,7 @@ static HRESULT WINAPI ItemMonikerImpl_ParseDisplayName(IMoniker *iface, IBindCtx
|
||||||
&IID_IParseDisplayName, (void **)&parser);
|
&IID_IParseDisplayName, (void **)&parser);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
{
|
{
|
||||||
hr = IMoniker_GetDisplayName(iface,pbc,NULL,&displayName);
|
hr = IParseDisplayName_ParseDisplayName(parser, pbc, displayname, eaten, ppmkOut);
|
||||||
|
|
||||||
hr = IParseDisplayName_ParseDisplayName(parser, pbc, displayName, eaten, ppmkOut);
|
|
||||||
|
|
||||||
IParseDisplayName_Release(parser);
|
IParseDisplayName_Release(parser);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue