From c39f6421ba871c4ffa501ef83bf2a8eb93c44a01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 5 Apr 2013 17:16:32 +0000 Subject: Fixed old icq authorization dialog bug. (fixes #271) git-svn-id: http://svn.miranda-ng.org/main/trunk@4320 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icq_proto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/IcqOscarJ/src') diff --git a/protocols/IcqOscarJ/src/icq_proto.cpp b/protocols/IcqOscarJ/src/icq_proto.cpp index 690e5011dc..29cc83d99a 100644 --- a/protocols/IcqOscarJ/src/icq_proto.cpp +++ b/protocols/IcqOscarJ/src/icq_proto.cpp @@ -379,7 +379,7 @@ HANDLE __cdecl CIcqProto::AddToListByEvent( int flags, int iContact, HANDLE hDbE dbei.pBlob = (PBYTE)_alloca(dbei.cbBlob + 1); dbei.pBlob[dbei.cbBlob] = '\0'; - if ( db_event_get(hDbEvent, &dbei)) + if (db_event_get(hDbEvent, &dbei)) return 0; // failed to get event if (strcmpnull(dbei.szModule, m_szModuleName)) @@ -411,8 +411,8 @@ HANDLE __cdecl CIcqProto::AddToListByEvent( int flags, int iContact, HANDLE hDbE case EVENTTYPE_AUTHREQUEST: case EVENTTYPE_ADDED: - if ( getContactUid( DbGetAuthEventContact(&dbei), &uin, &uid)) - return 0; + if (!getContactUid(DbGetAuthEventContact(&dbei), &uin, &uid)) + break; default: return 0; -- cgit v1.2.3