ProductUpgrader: use OrdinalIgnoreCase in exluded HashSet

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
This commit is contained in:
Derrick Stolee 2020-06-02 14:42:41 -04:00
Родитель 2b23a71288
Коммит 5119adb399
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -183,7 +183,7 @@ namespace GVFS.Common
// directory causes a cycle(at some point we start copying C:\Program Files\GVFS\ProgramData\GVFS.Upgrade
// and its contents into C:\Program Files\GVFS\ProgramData\GVFS.Upgrade\Tools). The exclusion below is
// added to avoid this loop.
HashSet<string> directoriesToExclude = new HashSet<string>();
HashSet<string> directoriesToExclude = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
string secureDataRoot = GVFSPlatform.Instance.GetSecureDataRootForGVFS();
directoriesToExclude.Add(secureDataRoot);