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/helpers/gen_helpers.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/helpers/gen_helpers.cpp') diff --git a/plugins/helpers/gen_helpers.cpp b/plugins/helpers/gen_helpers.cpp index 41f4f20276..c397936b37 100644 --- a/plugins/helpers/gen_helpers.cpp +++ b/plugins/helpers/gen_helpers.cpp @@ -26,7 +26,7 @@ wchar_t *Hlp_GetProtocolName(const char *proto) { if ((!ProtoServiceExists(proto, PS_GETNAME)) || (CallProtoService(proto, PS_GETNAME, (WPARAM)sizeof(protoname), (LPARAM)protoname))) return NULL; - return mir_a2t(protoname); + return mir_a2u(protoname); } @@ -103,16 +103,16 @@ int AddDebugLogMessage(const wchar_t* fmt, ...) va_list va; va_start(va, fmt); - mir_vsntprintf(tszText, _countof(tszText), fmt, va); + mir_vsnwprintf(tszText, _countof(tszText), fmt, va); va_end(va); #ifdef MODULENAME - mir_sntprintf(tszFinal, L"%s: %s", MODULENAME, tszText); + mir_snwprintf(tszFinal, L"%s: %s", MODULENAME, tszText); #else wcsncpy(tszFinal, tszText, _countof(tszFinal)); #endif - szFinal = mir_t2a(tszFinal); + szFinal = mir_u2a(tszFinal); res = WriteToDebugLogA(szFinal); mir_free(szFinal); @@ -130,5 +130,5 @@ wchar_t *itot(int num) wchar_t tRes[32]; // check this _itow(num, tRes, 10); - return mir_tstrdup(tRes); + return mir_wstrdup(tRes); } -- cgit v1.2.3