summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-24 17:58:08 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-24 17:58:08 +0000
commit323bb6bb51ac11a9ef1d360726edb5404d7f20c6 (patch)
tree9270271ee4ec09e34820f7e2956d2ab4ed603dc1
parent64936da361b3bd1c561829ffd02df1b8ec83e93b (diff)
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@4526 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/Skype/src/skype_account.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/Skype/src/skype_account.cpp b/protocols/Skype/src/skype_account.cpp
index e318a6672a..1f7ca50541 100644
--- a/protocols/Skype/src/skype_account.cpp
+++ b/protocols/Skype/src/skype_account.cpp
@@ -17,7 +17,9 @@ void CSkypeProto::OnAccountChanged(int prop)
if (loginStatus == CAccount::LOGGED_OUT)
{
CAccount::LOGOUTREASON whyLogout;
- this->account->GetPropLogoutreason(whyLogout);
+ if (!this->account->GetPropLogoutreason(whyLogout))
+ break;
+
if (whyLogout != CAccount::LOGOUT_CALLED)
{
this->m_iStatus = ID_STATUS_OFFLINE;