From 179f34e621e0c847e262abeea06c65bb83ffdbd5 Mon Sep 17 00:00:00 2001 From: aunsane Date: Tue, 1 May 2018 00:33:11 +0300 Subject: CloudFile: fix for #1315 --- plugins/SendScreenshotPlus/src/CSendCloudFile.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/SendScreenshotPlus') 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 -- cgit v1.2.3