mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 01:27:19 +08:00
[BROWSEUI] Accept environment variables in ACLO_FILESYSDIRS
Properly handle ACLO_FILESYSDIRS. CORE-9281
This commit is contained in:
@@ -260,8 +260,21 @@ STDMETHODIMP CACListISF::Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
|
||||
}
|
||||
}
|
||||
|
||||
if ((m_dwOptions & ACLO_FILESYSDIRS) && !PathIsDirectoryW(pszPathName))
|
||||
continue;
|
||||
if (m_dwOptions & ACLO_FILESYSDIRS)
|
||||
{
|
||||
if (wcschr(pszPathName, L'%') != NULL)
|
||||
{
|
||||
WCHAR szPath[MAX_PATH];
|
||||
ExpandEnvironmentStringsW(pszPathName, szPath, _countof(szPath));
|
||||
if (!PathIsDirectoryW(szPath))
|
||||
continue;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!PathIsDirectoryW(pszPathName))
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
hr = S_OK;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user