diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-22 12:37:33 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-22 12:37:33 +0000 |
commit | 772ba179473fa39074278cad7aae84870c9310b8 (patch) | |
tree | b485c1c1130b0d363a18302ffe9edd6a8decf34d | |
parent | e628b545ebb369078abb58b5a2b991321dddcdc5 (diff) |
VKontakte: quick fix for contact with id=0
git-svn-id: http://svn.miranda-ng.org/main/trunk@10556 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 40570adf24..d2fed8d7b8 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -35,6 +35,9 @@ void CVkProto::SetAllContactStatuses(int iStatus) MCONTACT CVkProto::FindUser(LONG dwUserid, bool bCreate)
{
+ if (!dwUserid)
+ return NULL;
+
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
LONG dbUserid = getDword(hContact, "ID", -1);
if (dbUserid == -1)
|