From 2132aa7dfe2a71265e540cef0ec48543050c1004 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 30 Apr 2020 13:50:50 +0300 Subject: =?UTF-8?q?fixes=20#2366=20(TabSRMM:=20=D0=BA=D1=80=D0=B0=D0=BA?= =?UTF-8?q?=D0=BE=D0=B7=D1=8F=D0=B1=D1=80=D1=8B=20=D0=B2=20=D0=B2=D0=B8?= =?UTF-8?q?=D0=BD=D0=B4=D0=B5,=20=D0=B3=D0=B4=D0=B5=20=D0=BD=D0=B5=D1=82?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6=D0=BA=D0=B8=20?= =?UTF-8?q?=D1=80=D1=83=D1=81=D1=81=D0=BA=D0=BE=D0=B3=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/TabSRMM/res/resource.rc | 1 - plugins/TabSRMM/src/msgoptions.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') 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); -- cgit v1.2.3