diff options
-rw-r--r-- | plugins/TabSRMM/res/resource.rc | 1 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgoptions.cpp | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/res/resource.rc b/plugins/TabSRMM/res/resource.rc index 442c04d10c..db49db3cbc 100644 --- a/plugins/TabSRMM/res/resource.rc +++ b/plugins/TabSRMM/res/resource.rc @@ -431,7 +431,6 @@ END IDD_TEMPLATEEDIT DIALOGEX 0, 0, 368, 231
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
GROUPBOX "Templates",IDC_STATIC,3,4,108,94
diff --git a/plugins/TabSRMM/src/msgoptions.cpp b/plugins/TabSRMM/src/msgoptions.cpp index 3785513c8c..2c7e801de2 100644 --- a/plugins/TabSRMM/src/msgoptions.cpp +++ b/plugins/TabSRMM/src/msgoptions.cpp @@ -702,8 +702,9 @@ public: else
SetTextColor(dis->hDC, GetSysColor(COLOR_WINDOWTEXT));
}
- char *pszName = Translate(TemplateNames[iItem]);
- TextOutA(dis->hDC, dis->rcItem.left, dis->rcItem.top, pszName, (int)mir_strlen(pszName));
+
+ auto *pwszName = TranslateW(_A2T(TemplateNames[iItem]));
+ TextOutW(dis->hDC, dis->rcItem.left, dis->rcItem.top, pwszName, (int)mir_wstrlen(pwszName));
}
return CSrmmBaseDialog::DlgProc(uMsg, wParam, lParam);
|