diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-10-29 04:44:31 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-10-29 04:44:31 +0000 |
commit | 116c762e508fef30be544a9e07a2f89b33b481f6 (patch) | |
tree | 795a5a2ebac9c8a134fe5f4c905d612dc295128f /protocols/VKontakte/src/vk_files.cpp | |
parent | 120019609ad472cdfa973f641958db730a6b0873 (diff) |
VKontakte:
fix for news notification in clist
fix option dialog labels
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@15645 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_files.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_files.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index ca9822b47a..bcfd1e8635 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -60,7 +60,7 @@ void CVkProto::SendFileFiled(CVkFileUploadParam *fup, int ErrorCode) break;
case VKERR_INVALID_PARAMETERS:
tszError = TranslateT("One of the parameters specified was missing or invalid");
- break;
+ break;
case VKERR_COULD_NOT_SAVE_FILE:
tszError = TranslateT("Couldn't save file");
break;
@@ -181,7 +181,6 @@ void CVkProto::OnReciveUploadServer(NETLIBHTTPREQUEST *reply, AsyncHttpRequest * CMStringA boundary, header;
CMStringA NamePart = fup->atrName();
CMStringA FNamePart = fup->fileName();
-
// Boundary
int iboundary;
Utils_GetRandom(&iboundary, sizeof(iboundary));
@@ -304,7 +303,7 @@ void CVkProto::OnReciveUpload(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) SendFileFiled(fup, VKERR_FTYPE_NOT_SUPPORTED);
return;
}
-
+
pUploadReq->pUserInfo = pReq->pUserInfo;
Push(pUploadReq);
}
@@ -336,7 +335,7 @@ void CVkProto::OnReciveUploadFile(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR SendFileFiled(fup, VKERR_INVALID_PARAMETERS);
return;
}
-
+
CMString Attachment;
switch (fup->GetType()) {
@@ -355,7 +354,7 @@ void CVkProto::OnReciveUploadFile(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR }
AsyncHttpRequest *pMsgReq;
-
+
if (isChatRoom(fup->hContact)) {
ptrT tszChatID(getTStringA(fup->hContact, "ChatRoomID"));
@@ -390,6 +389,6 @@ void CVkProto::OnReciveUploadFile(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR pMsgReq << TCHAR_PARAM("message", fup->Desc) << TCHAR_PARAM("attachment", Attachment) << VER_API;
pMsgReq->AddHeader("Content-Type", "application/x-www-form-urlencoded");
-
+
Push(pMsgReq);
}
\ No newline at end of file |