From 13b9e58ec236060385c3701ffe9a314992a073ec Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Tue, 3 Nov 2015 18:29:19 +0000 Subject: MSN: Forgot to return value in function returning bool git-svn-id: http://svn.miranda-ng.org/main/trunk@15675 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_auth.cpp | 6 +++++- protocols/MSN/src/msn_threads.cpp | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/MSN/src') diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index a74fd9e928..0f8ba306e9 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -156,7 +156,8 @@ static const char authPacket[] = GenericToken::GenericToken(const char *pszTokenName): m_pszTokenName(pszTokenName), m_pszToken(NULL), - m_tExpires(0) + m_tExpires(0), + m_proto(NULL) { } @@ -259,6 +260,7 @@ bool SkypeToken::Refresh(bool bForce) NETLIBHTTPREQUEST *nlhrReply; NETLIBHTTPHEADER headers[1]; char szPOST[2048], szToken[1024]; + bool bRet = false; if (!bForce && !Expired()) return false; @@ -315,10 +317,12 @@ bool SkypeToken::Refresh(bool bForce) tExpires = atoi(pExpireTime+12); } else tExpires=86400; SetToken(szToken, time(NULL)+tExpires); + bRet=true; } } CallService(MS_NETLIB_FREEHTTPREQUESTSTRUCT, 0, (LPARAM)nlhrReply); } else m_proto->hHttpsConnection = NULL; + return bRet; } const char *SkypeToken::XSkypetoken() diff --git a/protocols/MSN/src/msn_threads.cpp b/protocols/MSN/src/msn_threads.cpp index 0240aa3ccd..8e92e2e72e 100644 --- a/protocols/MSN/src/msn_threads.cpp +++ b/protocols/MSN/src/msn_threads.cpp @@ -29,7 +29,6 @@ along with this program. If not, see . void __cdecl CMsnProto::msn_keepAliveThread(void*) { bool keepFlag = true; - time_t t; hKeepAliveThreadEvt = CreateEvent(NULL, FALSE, FALSE, NULL); -- cgit v1.2.3