summaryrefslogtreecommitdiff
path: root/plugins/helpers/gen_helpers.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
commit2f261839b60692e33d0e160344d0d636d49c90ba (patch)
tree187921722698b681d29df3f6e60fb18394a5e9d5 /plugins/helpers/gen_helpers.cpp
parent2e931a0b2780587d85f3902468c935f5adba70c8 (diff)
less TCHARs
git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/helpers/gen_helpers.cpp')
-rw-r--r--plugins/helpers/gen_helpers.cpp10
1 files changed, 5 insertions, 5 deletions
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);
}