summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-04-11 17:11:23 +0000
committerRené Schümann <white06tiger@gmail.com>2014-04-11 17:11:23 +0000
commit99e1f60a6570c12fd02a9a2ebe8915680d2bfcec (patch)
tree847576f3018a23689c951734200c58707d116825 /plugins/SendScreenshotPlus/src/CSendFTPFile.cpp
parente80eac0d78daff0f041078d21218850f31c5315e (diff)
SendSS:
*+ improved "Result"-Dialog (resource.rc/h, CSend, mir_icolib) added thumbnail link added copy buttons w/ images (copy raw, BBCode image, BBCode image with link) also improved handling. Now plays sound before dialog opens (was on close before) * CSend got new member variables. m_URL and m_URLthumb to hold image URLs (used by FTP,HTTP and ImageShack as of now) - removed m_URL and similar from CSendFTPFile and CSendHTTPServer git-svn-id: http://svn.miranda-ng.org/main/trunk@8957 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSendFTPFile.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/CSendFTPFile.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp b/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp
index b52a3925e8..407a63a734 100644
--- a/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp
+++ b/plugins/SendScreenshotPlus/src/CSendFTPFile.cpp
@@ -36,12 +36,10 @@ CSendFTPFile::CSendFTPFile(HWND Owner, MCONTACT hContact, bool /*bAsync*/)
m_EnableItem = 0 ; //SS_DLG_DESCRIPTION | SS_DLG_AUTOSEND | SS_DLG_DELETEAFTERSSEND;
m_pszSendTyp = LPGENT("FTPFile transfer");
m_pszFileName = NULL;
- m_URL = NULL;
}
CSendFTPFile::~CSendFTPFile(){
mir_free(m_pszFileName);
- mir_free(m_URL);
}
//---------------------------------------------------------------------------
@@ -70,7 +68,6 @@ int CSendFTPFile::Send()
}
void CSendFTPFile::SendThread() {
- mir_freeAndNil(m_URL);
INT_PTR ret = FTPFileUploadA(m_hContact, FNUM_DEFAULT, FMODE_RAWFILE, &m_pszFileName,1);
if (ret != 0) {
@@ -81,7 +78,7 @@ void CSendFTPFile::SendThread() {
//Can't delete the file since FTP File plugin will use it
m_bDeleteAfterSend = false;
- if (m_URL && m_URL[0]!= NULL) {
+ if (m_URL && *m_URL) {/// @fixme : m_URL never set
svcSendMsgExit(m_URL); return;
}
Exit(ACKRESULT_FAILED);