Bug 1363398 - add the KF_FLAG_NO_ALIAS flag to the SHGetKnownFolderIDList call, r=jimm.

This commit is contained in:
Florian Quèze 2017-05-30 21:44:57 +02:00
Родитель 509eff1360
Коммит 135ff563ed
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1134,8 +1134,8 @@ GetShellFolderPath(KNOWNFOLDERID folder, nsAString& _retval)
LPITEMIDLIST pItemIDList = nullptr;
if (SUCCEEDED(SHGetKnownFolderIDList(folder, KF_FLAG_SIMPLE_IDLIST | KF_FLAG_DONT_VERIFY,
NULL, &pItemIDList)) &&
DWORD flags = KF_FLAG_SIMPLE_IDLIST | KF_FLAG_DONT_VERIFY | KF_FLAG_NO_ALIAS;
if (SUCCEEDED(SHGetKnownFolderIDList(folder, flags, NULL, &pItemIDList)) &&
SHGetPathFromIDListW(pItemIDList, buf)) {
// We're going to use wcslen (wcsnlen not available in msvc7.1) so make
// sure to null terminate.