From 9442402df54494c3931a1002bc9d192e484e1c05 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 31 Jul 2016 17:31:02 +0000 Subject: CmdLine: - Fixed unicode conversion git-svn-id: http://svn.miranda-ng.org/main/trunk@17151 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/CmdLine/src/utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/CmdLine/src/utils.cpp b/plugins/CmdLine/src/utils.cpp index 066dc41aa0..df4f62e31d 100644 --- a/plugins/CmdLine/src/utils.cpp +++ b/plugins/CmdLine/src/utils.cpp @@ -191,8 +191,8 @@ MCONTACT GetContactFromID(char *szID, char *szProto) GetContactProto(hContact, cProtocol, sizeof(cProtocol)); char *szHandle = GetContactID(hContact, cProtocol); - char *tmp = (char*) pcli->pfnGetContactDisplayName(hContact, 0); - strncpy_s(dispName, tmp, _TRUNCATE); + wchar_t *tmp = pcli->pfnGetContactDisplayName(hContact, 0); + strncpy_s(dispName, _T2A(tmp), _TRUNCATE); if ((szHandle) && ((mir_strcmpi(szHandle, szID) == 0) || (mir_strcmpi(dispName, szID) == 0)) && ((szProto == NULL) || (_stricmp(szProto, cProtocol) == 0))) found = 1; -- cgit v1.2.3