[BROWSEUI] Fix CACListISF::Next assertion

CORE-9281
This commit is contained in:
Katayama Hirofumi MZ 2021-03-11 17:12:06 +09:00
parent bcba930622
commit 6546ad7700

View File

@ -251,7 +251,8 @@ STDMETHODIMP CACListISF::Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
if (m_dwOptions & (ACLO_FILESYSONLY | ACLO_FILESYSDIRS))
{
DWORD attrs = SFGAO_FILESYSANCESTOR | SFGAO_FILESYSTEM;
hr = m_pShellFolder->GetAttributesOf(1, const_cast<LPCITEMIDLIST *>(&pidlChild), &attrs);
LPCITEMIDLIST pidlRef = pidlChild;
hr = m_pShellFolder->GetAttributesOf(1, &pidlRef, &attrs);
if (SUCCEEDED(hr))
{
if (!(attrs & (SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR)))