summaryrefslogtreecommitdiff
path: root/plugins/CmdLine
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2016-07-31 17:31:02 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2016-07-31 17:31:02 +0000
commit9442402df54494c3931a1002bc9d192e484e1c05 (patch)
tree50fedf74cc5d7f442bd9440479f7bb1241704bee /plugins/CmdLine
parent5ad628202ad5d367a593975c50bebcdc70d82bb7 (diff)
CmdLine: - Fixed unicode conversion
git-svn-id: http://svn.miranda-ng.org/main/trunk@17151 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CmdLine')
-rw-r--r--plugins/CmdLine/src/utils.cpp4
1 files 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;