summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-05-01 00:33:11 +0300
committeraunsane <aunsane@gmail.com>2018-05-01 00:33:11 +0300
commit179f34e621e0c847e262abeea06c65bb83ffdbd5 (patch)
tree4390714c8afdbb1eb99288f595d99464dfe2b81d /plugins/SendScreenshotPlus
parent11c2c06d4a603956a51349b3f0c5b7e0eabe744a (diff)
CloudFile: fix for #1315
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendCloudFile.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp b/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp
index d06669df80..842ebaee24 100644
--- a/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendCloudFile.cpp
@@ -57,12 +57,15 @@ 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)m_URL)) {
+ if (CallService(MS_CLOUDFILE_UPLOAD, (WPARAM)&ud, (LPARAM)&ur)) {
Error(LPGENW("%s (%i):\nCould not add a share to the CloudFile plugin."), TranslateW(m_pszSendTyp), 0);
- Exit(ACKRESULT_FAILED); return;
+ Exit(ACKRESULT_FAILED);
+ return;
}
+ m_URL = ur.link;
if (m_URL)
svcSendMsgExit(m_URL);
else