From a4b5a6fb054a30b840aadc8ecbba1cb3afedb8db Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 7 Mar 2016 14:36:40 +0000 Subject: Dropbox: some fixes (thx to wishmaster) git-svn-id: http://svn.miranda-ng.org/main/trunk@16440 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_services.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugins/Dropbox/src/dropbox_services.cpp') diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index 4666932190..08774cef96 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -172,6 +172,10 @@ INT_PTR CDropbox::UploadToDropbox(WPARAM wParam, LPARAM lParam) if (PathIsDirectory(uploadInfo->localPath)) { // temporary unsupported + + transfers.remove(ftp); + delete ftp; + return ACKRESULT_FAILED; } else @@ -183,6 +187,9 @@ INT_PTR CDropbox::UploadToDropbox(WPARAM wParam, LPARAM lParam) *data = mir_utf8encodeT(ftp->GetData()); } + transfers.remove(ftp); + delete ftp; + return res; } @@ -197,6 +204,10 @@ INT_PTR CDropbox::UploadToDropboxAsync(WPARAM, LPARAM lParam) if (PathIsDirectory(uploadInfo->localPath)) { // temporary unsupported + + transfers.remove(ftp); + delete ftp; + return NULL; } else -- cgit v1.2.3