From 035b5186bba8c0cab7d349f849c5c1db7cad7e39 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 3 Apr 2015 21:06:18 +0000 Subject: SkypeWeb: messaging support (patch from MikalaiR) git-svn-id: http://svn.miranda-ng.org/main/trunk@12595 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_utils.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_utils.cpp') diff --git a/protocols/SkypeWeb/src/skype_utils.cpp b/protocols/SkypeWeb/src/skype_utils.cpp index 428f778d5b..5d365c0cb1 100644 --- a/protocols/SkypeWeb/src/skype_utils.cpp +++ b/protocols/SkypeWeb/src/skype_utils.cpp @@ -1,5 +1,10 @@ #include "common.h" +bool CSkypeProto::IsOnline() +{ + return m_iStatus > ID_STATUS_OFFLINE && m_hPollingThread; +} + time_t __stdcall CSkypeProto::IsoToUnixTime(const TCHAR *stamp) { TCHAR date[9]; @@ -136,14 +141,7 @@ void CSkypeProto::ShowNotification(const TCHAR *message, int flags, MCONTACT hCo bool CSkypeProto::IsFileExists(std::tstring path) { - WIN32_FIND_DATA wfd; - HANDLE hFind = FindFirstFile(path.c_str(), &wfd); - if (INVALID_HANDLE_VALUE != hFind) - { - FindClose(hFind); - return true; - } - return false; + return _taccess(path.c_str(), 0) == 0; } char *CSkypeProto::ContactUrlToName(const char *url) -- cgit v1.2.3