summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_profile.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-28 19:56:11 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-28 19:56:11 +0000
commit1137908b0395c613b2827428fd846242eaddb999 (patch)
tree3b7d70ea4f780a23000ac8a3d4f46138871decbb /protocols/Skype/src/skype_profile.cpp
parentf769a165fd3bb4f68d8cdee160ebd8f003fcc0e1 (diff)
- fixed empty "<unknown contact>" chat rooms
- fixed crash on profile update git-svn-id: http://svn.miranda-ng.org/main/trunk@4562 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_profile.cpp')
-rw-r--r--protocols/Skype/src/skype_profile.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp
index 953550a214..31c81d9a97 100644
--- a/protocols/Skype/src/skype_profile.cpp
+++ b/protocols/Skype/src/skype_profile.cpp
@@ -194,12 +194,11 @@ void CSkypeProto::UpdateProfileFullName(SEObject *obj, HANDLE hContact)
}
else
{
- SEString firstName, lastName;
- CContact *contact = (CContact *)obj;
- contact->GetFullname(firstName, lastName);
+ StringList names = fullname;
- ::db_set_ws(hContact, this->m_szModuleName, "FirstName", mir_ptr<wchar_t>(::mir_utf8decodeW(firstName)));
- ::db_set_ws(hContact, this->m_szModuleName, "LastName", mir_ptr<wchar_t>(::mir_utf8decodeW(lastName)));
+ ::db_set_ws(hContact, this->m_szModuleName, "FirstName", names[0]);
+ if (names.getCount() > 1)
+ ::db_set_ws(hContact, this->m_szModuleName, "LastName", names[1]);
}
::mir_free(fullname);
}