diff options
Diffstat (limited to 'plugins/CurrencyRates/src/SettingsDlg.cpp')
-rw-r--r-- | plugins/CurrencyRates/src/SettingsDlg.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/CurrencyRates/src/SettingsDlg.cpp b/plugins/CurrencyRates/src/SettingsDlg.cpp index 7ac0a52361..ef81b22a41 100644 --- a/plugins/CurrencyRates/src/SettingsDlg.cpp +++ b/plugins/CurrencyRates/src/SettingsDlg.cpp @@ -964,9 +964,7 @@ tstring GenerateLogFileName(const tstring &rsLogFilePattern, const tstring &rsCu tstring::size_type n = sPath.find(g_pszVariableCurrencyRateName); if (tstring::npos != n) { tstring s = rsCurrencyRateSymbol; - for (auto &c : s) - if (wcschr(L"\\/:*?\"<>|", c)) - c = '_'; + FixInvalidChars(s); sPath.replace(n, _countof(g_pszVariableCurrencyRateName)-1, s.c_str()); } } |