From a74debb40c3df12738c722548c556a97e5976036 Mon Sep 17 00:00:00 2001 From: aunsane Date: Sat, 21 Apr 2018 20:45:34 +0300 Subject: CloudFile: - fix #1278 - decrease volume of response data with fields filtering - fix uploading for gdrive and onedrive in some cases - simplifying upload code - version bump --- plugins/SendScreenshotPlus/src/CSendCloudFile.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'plugins/SendScreenshotPlus') diff --git a/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp b/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp index bb061e3c2c..d06669df80 100644 --- a/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp +++ b/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp @@ -57,26 +57,16 @@ void CSendCloudFile::SendThread() /// @todo : SS_DLG_DESCRIPTION and SS_DLG_DELETEAFTERSSEND are of no use as of now since we don't track upload progress CFUPLOADDATA ud = { m_service, m_pszFile, L"SendSS" }; - CFUPLOADRESULT ur = { }; - if (CallService(MS_CLOUDFILE_UPLOAD, (WPARAM)&ud, (LPARAM)&ur)) - { + if (CallService(MS_CLOUDFILE_UPLOAD, (WPARAM)&ud, (LPARAM)m_URL)) { Error(LPGENW("%s (%i):\nCould not add a share to the CloudFile plugin."), TranslateW(m_pszSendTyp), 0); Exit(ACKRESULT_FAILED); return; } - CMStringA message; - for (size_t i = 0; i < ur.linkCount; i++) - message.AppendFormat("%s\r\n", ur.links[i]); - message.Delete(message.GetLength() - 2, 2); - - m_URL = mir_strdup(message.GetString()); if (m_URL) svcSendMsgExit(m_URL); else Exit(ACKRESULT_FAILED); - - cfur_free(&ur); } void CSendCloudFile::SendThreadWrapper(void * Obj) -- cgit v1.2.3