diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/lpopts.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mir_app/src/lpopts.cpp b/src/mir_app/src/lpopts.cpp index 667808bd01..ae8463f619 100644 --- a/src/mir_app/src/lpopts.cpp +++ b/src/mir_app/src/lpopts.cpp @@ -148,14 +148,11 @@ void CLangpackDlg::LoadLangpack(LANGPACK_INFO *pack) LANGPACK_INFO *pack2 = new LANGPACK_INFO();
*pack2 = *pack;
- wchar_t tszName[512];
- mir_snwprintf(tszName, L"%s [%s]",
- TranslateW(pack->tszLanguage),
- pack->flags & LPF_DEFAULT ? TranslateT("built-in") : pack->tszFileName);
+ CMStringW wszName(FORMAT, L"%s [%s]", pack->tszLanguage, (pack->flags & LPF_DEFAULT) ? TranslateT("built-in") : pack->tszFileName);
int idx = (pack->flags & LPF_DEFAULT)
- ? m_languages.InsertString(tszName, 0, (LPARAM)pack2)
- : m_languages.AddString(tszName, (LPARAM)pack2);
+ ? m_languages.InsertString(wszName, 0, (LPARAM)pack2)
+ : m_languages.AddString(wszName, (LPARAM)pack2);
if (pack->flags & LPF_ENABLED) {
m_languages.SetCurSel(idx);
DisplayPackInfo(pack);
|