[fonts][windows] Remove recursion for user fonts

This commit is contained in:
Oleg Korshul
2019-08-16 11:24:59 +03:00
parent 03316ea82d
commit dc1999482e

View File

@ -1640,7 +1640,7 @@ std::vector<std::wstring> CApplicationFonts::GetSetupFontFiles()
GetUserNameW(sUserName, &nUserNameLen);
std::wstring strUserName(sUserName, nUserNameLen - 1);
NSDirectory::GetFiles2(L"C:\\Users\\" + strUserName + L"\\AppData\\Local\\Microsoft\\Windows\\Fonts", oArray2, true);
NSDirectory::GetFiles2(L"C:\\Users\\" + strUserName + L"\\AppData\\Local\\Microsoft\\Windows\\Fonts", oArray2, false);
for (std::vector<std::wstring>::iterator i = oArray2.begin(); i != oArray2.end(); i++)
{