Return attributes for the correct file in the unixfs ParseDisplayName.
This commit is contained in:
parent
6de20f33ae
commit
d1b575e940
|
@ -559,7 +559,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_ParseDisplayName(IShellFolder2* i
|
||||||
LPCITEMIDLIST pidlLast;
|
LPCITEMIDLIST pidlLast;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
hr = SHBindToParent(This->m_pidlLocation, &IID_IShellFolder, (LPVOID*)&pParentSF, &pidlLast);
|
hr = SHBindToParent(*ppidl, &IID_IShellFolder, (LPVOID*)&pParentSF, &pidlLast);
|
||||||
if (FAILED(hr)) return E_FAIL;
|
if (FAILED(hr)) return E_FAIL;
|
||||||
IShellFolder_GetAttributesOf(pParentSF, 1, &pidlLast, pdwAttributes);
|
IShellFolder_GetAttributesOf(pParentSF, 1, &pidlLast, pdwAttributes);
|
||||||
IShellFolder_Release(pParentSF);
|
IShellFolder_Release(pParentSF);
|
||||||
|
|
Loading…
Reference in New Issue