https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6546ad7700b0c010443bb14dfaf0c255ac06022e

commit 6546ad7700b0c010443bb14dfaf0c255ac06022e
Author:     Katayama Hirofumi MZ <[email protected]>
AuthorDate: Thu Mar 11 17:12:06 2021 +0900
Commit:     Katayama Hirofumi MZ <[email protected]>
CommitDate: Thu Mar 11 17:12:06 2021 +0900

    [BROWSEUI] Fix CACListISF::Next assertion
    
    CORE-9281
---
 dll/win32/browseui/aclistisf.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dll/win32/browseui/aclistisf.cpp b/dll/win32/browseui/aclistisf.cpp
index 533a7af814b..15de181714a 100644
--- a/dll/win32/browseui/aclistisf.cpp
+++ b/dll/win32/browseui/aclistisf.cpp
@@ -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)))

Reply via email to