From 6f9167b69872efc9c6d14daa8987d0ab51a5408e Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 17 Oct 2015 14:58:29 +0000 Subject: MirOTR: - Fixed Apply button in options - Fixed per contact policy (fixes #1070) - Other bug fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15568 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirOTR/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/MirOTR/src/utils.cpp') diff --git a/plugins/MirOTR/src/utils.cpp b/plugins/MirOTR/src/utils.cpp index f61738deeb..234f21cd1c 100644 --- a/plugins/MirOTR/src/utils.cpp +++ b/plugins/MirOTR/src/utils.cpp @@ -118,14 +118,14 @@ char* contact_get_id(MCONTACT hContact, bool bNameOnError) { } } if (!pszUniqueID && bNameOnError) { - char *name = (char *)pcli->pfnGetContactDisplayName(hContact, 0); - if (name) pszUniqueID = mir_strdup(name); + const TCHAR *name = pcli->pfnGetContactDisplayName(hContact, 0); + if (name) pszUniqueID = mir_t2a(name); } return pszUniqueID; } __inline const TCHAR* contact_get_nameT(MCONTACT hContact) { - return (TCHAR*)pcli->pfnGetContactDisplayName(hContact, 0); + return pcli->pfnGetContactDisplayName(hContact, 0); } TCHAR* ProtoGetNickname(const char* proto) -- cgit v1.2.3