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:
Nikolay Sivov 2020-01-23 02:03:03 +03:00 committed by Alexandre Julliard
parent dee2fd1147
commit 1f648ddd7a
1 changed files with 1 additions and 4 deletions

View File

@ -777,7 +777,6 @@ static HRESULT WINAPI ItemMonikerImpl_ParseDisplayName(IMoniker *iface, IBindCtx
ItemMonikerImpl *This = impl_from_IMoniker(iface);
IOleItemContainer *container;
IParseDisplayName *parser;
LPOLESTR displayName;
HRESULT hr;
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);
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);
}