diff options
author | George Hazan <ghazan@miranda.im> | 2020-07-23 14:15:06 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-07-23 14:15:06 +0300 |
commit | bc8768c453fade64f20ff18c24092a41f94993a0 (patch) | |
tree | 908a832615b7dab0ff09c70d1c70e39bf3ff247e /plugins/TipperYM/src | |
parent | db937fbda0117e8bec530e7deda7b94eea106e78 (diff) |
fixes #2493 (Проблема с Юникодом в диалоге добавления контакта)
Diffstat (limited to 'plugins/TipperYM/src')
-rw-r--r-- | plugins/TipperYM/src/subst.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp index 790d2b9a32..68de205802 100644 --- a/plugins/TipperYM/src/subst.cpp +++ b/plugins/TipperYM/src/subst.cpp @@ -153,9 +153,9 @@ bool Uid(MCONTACT hContact, char *szProto, wchar_t *buff, int bufflen) bool UidName(char *szProto, wchar_t *buff, int bufflen) { if (szProto) { - char *szUidName = (char*)CallProtoService(szProto, PS_GETCAPS, PFLAG_UNIQUEIDTEXT, 0); + wchar_t *szUidName = (wchar_t *)CallProtoService(szProto, PS_GETCAPS, PFLAG_UNIQUEIDTEXT, 0); if (szUidName && (INT_PTR)szUidName != CALLSERVICE_NOTFOUND) { - a2t(szUidName, buff, bufflen); + wcsncpy_s(buff, bufflen, szUidName, _TRUNCATE); return true; } } |