summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_proto.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2014-11-29 14:02:02 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2014-11-29 14:02:02 +0000
commit425e0f8eb79c6779ebe40f75cce92194ed103389 (patch)
tree0f45cba281a1772c69007516a45e60c128619754 /protocols/VKontakte/src/vk_proto.cpp
parent63611a72e967abd262e35d8683d9e14126accd68 (diff)
VKontakte:
replace (MCONTACT)-1 to INVALID_CONTACT_ID fix freeze contacts in online status git-svn-id: http://svn.miranda-ng.org/main/trunk@11150 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r--protocols/VKontakte/src/vk_proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp
index 9dc10e69ee..3f38487f2c 100644
--- a/protocols/VKontakte/src/vk_proto.cpp
+++ b/protocols/VKontakte/src/vk_proto.cpp
@@ -624,7 +624,7 @@ int CVkProto::Authorize(HANDLE hDbEvent)
if (!IsOnline())
return 1;
MCONTACT hContact = MContactFromDbEvent(hDbEvent);
- if (hContact == -1)
+ if (hContact == INVALID_CONTACT_ID)
return 1;
return AuthRequest(hContact, NULL);
@@ -636,7 +636,7 @@ int CVkProto::AuthDeny(HANDLE hDbEvent, const PROTOCHAR *reason)
if (!IsOnline())
return 1;
MCONTACT hContact = MContactFromDbEvent(hDbEvent);
- if (hContact == -1)
+ if (hContact == INVALID_CONTACT_ID)
return 1;
return SvcDeleteFriend(hContact,(LPARAM)true);