From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 14:23:31 +0000 Subject: less TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/modplus.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/TabSRMM/src/modplus.cpp') diff --git a/plugins/TabSRMM/src/modplus.cpp b/plugins/TabSRMM/src/modplus.cpp index 1fc829c606..333da241f8 100644 --- a/plugins/TabSRMM/src/modplus.cpp +++ b/plugins/TabSRMM/src/modplus.cpp @@ -117,9 +117,9 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) if (res == 0) break; - bufSize = textlenght + mir_tstrlen(pszMenu[res - 1]) + 2; + bufSize = textlenght + mir_wstrlen(pszMenu[res - 1]) + 2; pszFormatedText = (wchar_t*)_alloca(bufSize*sizeof(wchar_t)); - mir_sntprintf(pszFormatedText, bufSize, pszMenu[res - 1], pszText); + mir_snwprintf(pszFormatedText, bufSize, pszMenu[res - 1], pszText); } break; @@ -128,7 +128,7 @@ static int CustomButtonPressed(WPARAM wParam, LPARAM lParam) bufSize = textlenght + 12; pszFormatedText = (wchar_t*)_alloca(bufSize*sizeof(wchar_t)); - mir_sntprintf(pszFormatedText, bufSize, L"[img]%s[/img]", pszText); + mir_snwprintf(pszFormatedText, bufSize, L"[img]%s[/img]", pszText); bbd.ptszTooltip = 0; bbd.hIcon = 0; -- cgit v1.2.3