From 2fc85efad287656b0694c4f16b3c11af8435a06b Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 1 Apr 2014 19:43:18 +0000 Subject: Dropbox: when WPARAM is NULL MS_DROPBOX_SEND_FILE sends url to Dropbox bot git-svn-id: http://svn.miranda-ng.org/main/trunk@8818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_services.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Dropbox') diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index c8ab1957f7..db2e2c8be2 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -201,6 +201,9 @@ INT_PTR CDropbox::SendFileToDropbox(void *obj, WPARAM hContact, LPARAM lParam) wchar_t *filePath = (wchar_t*)lParam; + if (hContact == NULL) + hContact = instance->GetDefaultContact(); + FileTransferParam *ftp = new FileTransferParam(); ftp->withVisualisation = false; ftp->pfts.flags |= PFTS_SENDING; -- cgit v1.2.3