From 64a226c992df61beef30c5e1b86bf34b478fe3e5 Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Wed, 11 Jan 2017 07:54:48 +0500 Subject: VKontakte: db_get_sa(hContact, "Protocol", "p") does no good --- protocols/VKontakte/src/vk_messages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index d770180521..84b8075d3f 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -142,8 +142,8 @@ int CVkProto::OnDbEventRead(WPARAM, LPARAM hDbEvent) MCONTACT hContact = db_event_getContact(hDbEvent); if (!hContact) return 0; - - CMStringA szProto(ptrA(db_get_sa(hContact, "Protocol", "p"))); + + CMStringA szProto(GetContactProto(hContact)); if (szProto.IsEmpty() || szProto != m_szModuleName) return 0; -- cgit v1.2.3