summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_services.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2014-03-09 21:08:15 +0000
committerAlexander Lantsev <aunsane@gmail.com>2014-03-09 21:08:15 +0000
commit23088b0c249cb5b00f08947338734e03be36f961 (patch)
treeee19a55e99d0512b573140e4b0b6d58739a6bab9 /plugins/Dropbox/src/dropbox_services.cpp
parentbc53983ca355f2d4aa73cffb8dee68e7b7cba585 (diff)
Dropbox: added MS_DROPBOX_SEND_FILEW service
git-svn-id: http://svn.miranda-ng.org/main/trunk@8529 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_services.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp
index 3755299199..2ab715089b 100644
--- a/plugins/Dropbox/src/dropbox_services.cpp
+++ b/plugins/Dropbox/src/dropbox_services.cpp
@@ -238,6 +238,18 @@ INT_PTR CDropbox::SendFileToDropbox(void *obj, WPARAM hContact, LPARAM lParam)
return 0;
}
+INT_PTR CDropbox::SendFileWToDropbox(void *obj, WPARAM hContact, LPARAM lParam)
+{
+ const wchar_t *filePathW = (wchar_t*)lParam;
+ char *filePath = Utf8EncodeW(filePathW);
+
+ SendFileToDropbox(obj, hContact, (LPARAM)filePath);
+
+ mir_free(filePath);
+
+ return 0;
+}
+
INT_PTR CDropbox::SendFilesToDropbox(void *obj, WPARAM hContact, LPARAM)
{
CDropbox *instance = (CDropbox*)obj;