diff options
author | aunsane <aunsane@gmail.com> | 2018-04-21 20:45:34 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-04-21 20:45:53 +0300 |
commit | a74debb40c3df12738c722548c556a97e5976036 (patch) | |
tree | f3c2e224d75b64de547778625122d6242e558f36 /plugins/SendScreenshotPlus | |
parent | 803e7b0b5e7c84a814601141fcb7634516eefa30 (diff) |
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
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r-- | plugins/SendScreenshotPlus/src/CSendCloudFile.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
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) |