unixfs: Fix ParseDisplayName.
Build an absolute pidl to query attributes in UnixFolder::ParseDisplayName.
This commit is contained in:
parent
d582fdd39e
commit
b52146d95f
|
@ -905,12 +905,18 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_ParseDisplayName(IShellFolder2* i
|
|||
{
|
||||
IShellFolder *pParentSF;
|
||||
LPCITEMIDLIST pidlLast;
|
||||
LPITEMIDLIST pidlComplete = ILCombine(This->m_pidlLocation, *ppidl);
|
||||
HRESULT hr;
|
||||
|
||||
hr = SHBindToParent(*ppidl, &IID_IShellFolder, (LPVOID*)&pParentSF, &pidlLast);
|
||||
if (FAILED(hr)) return E_FAIL;
|
||||
hr = SHBindToParent(pidlComplete, &IID_IShellFolder, (LPVOID*)&pParentSF, &pidlLast);
|
||||
if (FAILED(hr)) {
|
||||
FIXME("SHBindToParent failed! hr = %08lx\n", hr);
|
||||
ILFree(pidlComplete);
|
||||
return E_FAIL;
|
||||
}
|
||||
IShellFolder_GetAttributesOf(pParentSF, 1, &pidlLast, pdwAttributes);
|
||||
IShellFolder_Release(pParentSF);
|
||||
ILFree(pidlComplete);
|
||||
}
|
||||
|
||||
if (!result) TRACE("FAILED!\n");
|
||||
|
|
Loading…
Reference in New Issue