From 8aaecbf3a35978c4c1daa6a9d49b563d2b2a91c6 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Thu, 4 Jun 2015 10:13:04 +0000 Subject: SkypeWeb: Small fixes. git-svn-id: http://svn.miranda-ng.org/main/trunk@13993 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_login.cpp | 4 ++-- protocols/SkypeWeb/src/skype_proto.h | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index 2de32f82be..056f3df9bc 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -19,7 +19,7 @@ along with this program. If not, see . void CSkypeProto::OnLoginOAuth(const NETLIBHTTPREQUEST *response) { - if (response == NULL) + if (response == NULL || response->pData == NULL) { ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, LOGIN_ERROR_UNKNOWN); SetStatus(ID_STATUS_OFFLINE); @@ -94,7 +94,7 @@ void CSkypeProto::OnEndpointCreated(const NETLIBHTTPREQUEST *response) } else if (!mir_strcmpi(response->headers[i].szName, "Location")) { - CMStringA szValue = response->headers[i].szValue, szCookieName, szCookieVal; + CMStringA szValue = response->headers[i].szValue; Server = GetServerFromUrl(szValue); setString("Server", Server); } diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 0415261830..6a16d06939 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -129,8 +129,7 @@ private: *RegToken, *TokenSecret, *EndpointId, - *SelfSkypeName, - *pie; + *SelfSkypeName; static CSkypeProto* GetContactAccount(MCONTACT hContact); -- cgit v1.2.3