summaryrefslogtreecommitdiff
path: root/protocols/Skype
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-06-14 20:04:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-06-14 20:04:15 +0000
commit6165d65054185f4117cb625eb738b96d3a7032ef (patch)
tree235ec7675c19ffc61e0694e4bd79ac2b5a03d70c /protocols/Skype
parent5c2da0fd5b2542d99750747fc746013b7755ddae (diff)
- memory corruption fix;
- fix for the annoying bug with going offline when a proto is actually online git-svn-id: http://svn.miranda-ng.org/main/trunk@4948 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype')
-rw-r--r--protocols/Skype/src/skype_account.cpp6
-rw-r--r--protocols/Skype/src/skype_chat.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp
index 39f4e52317..2642ef0da6 100644
--- a/protocols/Skype/src/skype_account.cpp
+++ b/protocols/Skype/src/skype_account.cpp
@@ -346,14 +346,14 @@ void CSkypeProto::OnAccountChanged(int prop)
this->UpdateProfile(this->account.fetch());
break;
- case Account::P_AVAILABILITY:
+/* case Account::P_AVAILABILITY:
{
Contact::AVAILABILITY status;
this->account->GetPropAvailability(status);
int mir_status = this->SkypeToMirandaStatus(status);
- if (mir_status != this->m_iStatus)
+ if (mir_status != this->m_iStatus && mir_status >= ID_STATUS_OFFLINE)
this->SetStatus(mir_status);
}
- break;
+ break;*/
}
} \ No newline at end of file
diff --git a/protocols/Skype/src/skype_chat.cpp b/protocols/Skype/src/skype_chat.cpp
index 4276df71dc..600de624b2 100644
--- a/protocols/Skype/src/skype_chat.cpp
+++ b/protocols/Skype/src/skype_chat.cpp
@@ -1334,7 +1334,7 @@ void CSkypeProto:: UpdateChatUserNick(CContact::Ref contact)
contact->GetPropFullname(data);
ptrW nick(::mir_utf8decodeW(data));
if (data.length() == 0)
- nick = sid;
+ nick = (WCHAR*)sid;
GC_INFO gci = {0};
gci.Flags = BYINDEX | DATA;