From 5f310e19fd9b3ab199682fda1e4874e1fc2cc158 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Fri, 5 Aug 2016 08:37:43 +0000 Subject: =?UTF-8?q?VKontakte:=20fix(=3F=3F=3F)=20=E2=80=98validation=20req?= =?UTF-8?q?uired=E2=80=99=20error=20add=20support=20vk-groups=20contacts?= =?UTF-8?q?=20fix=20(=3F=3F=3F)=20rare=20error=20with=20WorkerThread=20on?= =?UTF-8?q?=20connection=20lost=20version=20bump?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@17159 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_files.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/VKontakte/src/vk_files.cpp') diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index 2d977768fb..327e1c700e 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -21,8 +21,8 @@ HANDLE CVkProto::SendFile(MCONTACT hContact, const wchar_t *desc, wchar_t **file { debugLogA("CVkProto::SendFile"); - LONG userID = getDword(hContact, "ID", -1); - if (!IsOnline() || ((userID == -1 || userID == VK_FEED_USER) && !isChatRoom(hContact))) + LONG userID = getDword(hContact, "ID", VK_INVALID_USER); + if (!IsOnline() || ((userID == VK_INVALID_USER || userID == VK_FEED_USER) && !isChatRoom(hContact))) return (HANDLE)0; CVkFileUploadParam *fup = new CVkFileUploadParam(hContact, desc, files); @@ -369,8 +369,8 @@ void CVkProto::OnReciveUploadFile(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR } else { - LONG userID = getDword(fup->hContact, "ID", -1); - if (userID == -1 || userID == VK_FEED_USER) { + LONG userID = getDword(fup->hContact, "ID", VK_INVALID_USER); + if (userID == VK_INVALID_USER || userID == VK_FEED_USER) { SendFileFiled(fup, VKERR_INVALID_USER); return; } -- cgit v1.2.3