From 66f05dca3699dec5a7ab94ae4eaaf9d9aeda376a Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 21 Oct 2012 10:45:02 +0000 Subject: fixed contact information git-svn-id: http://svn.miranda-ng.org/main/trunk@2013 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_contacts.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/Skype') diff --git a/protocols/Skype/src/skype_contacts.cpp b/protocols/Skype/src/skype_contacts.cpp index 2353bbd004..d24f7d01fe 100644 --- a/protocols/Skype/src/skype_contacts.cpp +++ b/protocols/Skype/src/skype_contacts.cpp @@ -98,7 +98,7 @@ void CSkypeProto::UpdateContactCity(HANDLE hContact, CContact::Ref contact) { SEString data; contact->GetPropCity(data); - wchar_t* city = ::mir_a2u((const char*)data); + wchar_t* city = ::mir_utf8decodeW((const char*)data); if (wcscmp(city, L"") == 0) this->DeleteSetting(hContact, "City"); else @@ -120,7 +120,7 @@ void CSkypeProto::UpdateContactEmails(HANDLE hContact, CContact::Ref contact) { SEString data; contact->GetPropEmails(data); - wchar_t* emails = ::mir_a2u((const char*)data); + wchar_t* emails = ::mir_utf8decodeW((const char*)data); if (wcscmp(emails, L"") == 0) { this->DeleteSetting(hContact, "e-mail0"); @@ -160,7 +160,7 @@ void CSkypeProto::UpdateContactHomepage(HANDLE hContact, CContact::Ref contact) { SEString data; contact->GetPropHomepage(data); - wchar_t* homepage = ::mir_a2u((const char*)data); + wchar_t* homepage = ::mir_utf8decodeW((const char*)data); if (wcscmp(homepage, L"") == 0) this->DeleteSetting(hContact, "Homepage"); else @@ -180,7 +180,7 @@ void CSkypeProto::UpdateContactMobilePhone(HANDLE hContact, CContact::Ref contac { SEString data; contact->GetPropPhoneMobile(data); - wchar_t* phone = ::mir_a2u((const char*)data); + wchar_t* phone = ::mir_utf8decodeW((const char*)data); if (wcscmp(phone, L"") == 0) this->DeleteSetting(hContact, "Cellular"); else @@ -192,7 +192,7 @@ void CSkypeProto::UpdateContactPhone(HANDLE hContact, CContact::Ref contact) { SEString data; contact->GetPropPhoneHome(data); - wchar_t* phone = ::mir_a2u((const char*)data); + wchar_t* phone = ::mir_utf8decodeW((const char*)data); if (wcscmp(phone, L"") == 0) this->DeleteSetting(hContact, "Phone"); else @@ -204,7 +204,7 @@ void CSkypeProto::UpdateContactOfficePhone(HANDLE hContact, CContact::Ref contac { SEString data; contact->GetPropPhoneOffice(data); - wchar_t* phone = ::mir_a2u((const char*)data); + wchar_t* phone = ::mir_utf8decodeW((const char*)data); if (wcscmp(phone, L"") == 0) this->DeleteSetting(hContact, "CompanyPhone"); else @@ -216,7 +216,7 @@ void CSkypeProto::UpdateContactState(HANDLE hContact, CContact::Ref contact) { SEString data; contact->GetPropProvince(data); - wchar_t* state = ::mir_a2u((const char*)data); + wchar_t* state = ::mir_utf8decodeW((const char*)data); if (wcscmp(state, L"") == 0) this->DeleteSetting(hContact, "State"); else -- cgit v1.2.3