Return attributes for the correct file in the unixfs ParseDisplayName.

This commit is contained in:
Troy Rollo 2005-07-21 11:00:57 +00:00 committed by Alexandre Julliard
parent 6de20f33ae
commit d1b575e940
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_ParseDisplayName(IShellFolder2* i
LPCITEMIDLIST pidlLast;
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;
IShellFolder_GetAttributesOf(pParentSF, 1, &pidlLast, pdwAttributes);
IShellFolder_Release(pParentSF);