From c59762e958cc7f412379ce4b90d378f0c6b62022 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 15 Jul 2015 08:29:28 +0000 Subject: SkypeWeb: fix add contacts git-svn-id: http://svn.miranda-ng.org/main/trunk@14562 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_proto.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index e9b6d2b816..b02cfcde83 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -100,17 +100,23 @@ DWORD_PTR CSkypeProto::GetCaps(int type, MCONTACT) MCONTACT CSkypeProto::AddToList(int, PROTOSEARCHRESULT *psr) { - debugLogA("CSkypeProto::AddToList"); + debugLogA(__FUNCTION__); if (psr->id.a == NULL) return NULL; - - MCONTACT hContact = AddContact(psr->id.a); + MCONTACT hContact; + + if (psr->flags & PSR_UNICODE) + hContact = AddContact(mir_utf8encodeT(psr->id.t)); + else + hContact = AddContact(psr->id.a); + return hContact; } MCONTACT CSkypeProto::AddToListByEvent(int, int, MEVENT hDbEvent) { + debugLogA(__FUNCTION__); DBEVENTINFO dbei = { sizeof(dbei) }; if ((dbei.cbBlob = db_event_getBlobSize(hDbEvent)) == (DWORD)(-1)) return NULL; @@ -128,6 +134,8 @@ MCONTACT CSkypeProto::AddToListByEvent(int, int, MEVENT hDbEvent) char *lastName = firstName + mir_strlen(firstName) + 1; char *skypename = lastName + mir_strlen(lastName) + 1; + debugLogA(__FUNCTION__ " %s", mir_utf8decodeA(skypename)); + MCONTACT hContact = AddContact(skypename); return hContact; } -- cgit v1.2.3