From 5a168e085110bb7458b70e8b9a0075f161b40166 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Thu, 22 Jan 2015 16:54:35 +0000 Subject: VKontakte: warning fix in OnReciveUploadServer add more debuglog lines fix for protocol connecting after connection lost version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@11893 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 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 9679d3e9b4..ba40af49e8 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -230,10 +230,10 @@ void CVkProto::OnReciveUploadServer(NETLIBHTTPREQUEST *reply, AsyncHttpRequest * pUploadReq->pData = pData; pData += DataBegin.GetLength(); - size_t szBytes = fread(pData, 1, iFileLen, pFile); + long lBytes = fread(pData, 1, iFileLen, pFile); fclose(pFile); - if (szBytes != iFileLen) { + if (lBytes != iFileLen) { SendFileFiled(fup, _T("ErrorReadFile")); return; } -- cgit v1.2.3