From 32cc6d62a154d5724c40085f22747df2ee2ff4cb Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 10 May 2013 15:07:47 +0000 Subject: - fixed several issues in own details saving - fixed issues with contacts look cycle in db - fixed freez offline status after login error - other few bugs git-svn-id: http://svn.miranda-ng.org/main/trunk@4621 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_chat.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'protocols/Skype/src/skype_chat.cpp') diff --git a/protocols/Skype/src/skype_chat.cpp b/protocols/Skype/src/skype_chat.cpp index 5e210571b8..1a240d7089 100644 --- a/protocols/Skype/src/skype_chat.cpp +++ b/protocols/Skype/src/skype_chat.cpp @@ -192,17 +192,14 @@ bool CSkypeProto::IsChatRoom(HANDLE hContact) HANDLE CSkypeProto::GetChatRoomByCid(const wchar_t *cid) { - HANDLE hContact = ::db_find_first(); - while (hContact) + for (HANDLE hContact = ::db_find_first(this->m_szModuleName); hContact; hContact = ::db_find_next(hContact, this->m_szModuleName)) { - if (this->IsProtoContact(hContact) && this->IsChatRoom(hContact)) + if (this->IsChatRoom(hContact)) { mir_ptr chatID(::db_get_wsa(hContact, this->m_szModuleName, "ChatRoomID")); - if ( lstrcmp(cid, chatID) == 0) + if (::lstrcmp(cid, chatID) == 0) return hContact; } - - hContact = ::db_find_next(hContact); } return 0; -- cgit v1.2.3