From 6546ad7700b0c010443bb14dfaf0c255ac06022e Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Thu, 11 Mar 2021 17:12:06 +0900 Subject: [PATCH] [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(&pidlChild), &attrs); + LPCITEMIDLIST pidlRef = pidlChild; + hr = m_pShellFolder->GetAttributesOf(1, &pidlRef, &attrs); if (SUCCEEDED(hr)) { if (!(attrs & (SFGAO_FILESYSTEM | SFGAO_FILESYSANCESTOR)))