mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 02:41:22 +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))
|
if (m_dwOptions & ACLO_FILESYSDIRS)
|
||||||
continue;
|
{
|
||||||
|
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;
|
hr = S_OK;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue