diff options
Diffstat (limited to 'plugins/CloudFile/src/services.cpp')
-rw-r--r-- | plugins/CloudFile/src/services.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/services.cpp b/plugins/CloudFile/src/services.cpp index 826554ca97..d367dc1fe8 100644 --- a/plugins/CloudFile/src/services.cpp +++ b/plugins/CloudFile/src/services.cpp @@ -85,8 +85,10 @@ INT_PTR Upload(WPARAM wParam, LPARAM lParam) if (res == ACKRESULT_SUCCESS && lParam) { size_t linkCount = 0; const char **links = ftp.GetSharedLinks(linkCount); - if (linkCount > 0) - lParam = (LPARAM)mir_strdup(links[linkCount - 1]); + if (linkCount > 0) { + CFUPLOADRESULT *result = (CFUPLOADRESULT*)lParam; + result->link = mir_strdup(links[linkCount - 1]); + } } return res; |