mirror of
https://github.com/reactos/reactos.git
synced 2025-01-15 18:43:27 +00:00
[BROWSEUI] Fix CACListISF::Next assertion
CORE-9281
This commit is contained in:
parent
bcba930622
commit
6546ad7700
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue