mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[BROWSEUI] Accept environment variables in ACLO_FILESYSDIRS
Properly handle ACLO_FILESYSDIRS. CORE-9281
This commit is contained in:
parent
d8c38c4b4c
commit
fefac1fb1d
1 changed files with 15 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue