summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-09-22 12:37:33 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-09-22 12:37:33 +0000
commit772ba179473fa39074278cad7aae84870c9310b8 (patch)
treeb485c1c1130b0d363a18302ffe9edd6a8decf34d /protocols/VKontakte/src/misc.cpp
parente628b545ebb369078abb58b5a2b991321dddcdc5 (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
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp3
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)