summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-04 19:26:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-04 19:26:46 +0000
commitfba57c10d9f9552c9c31c20283147348789ef650 (patch)
tree165c4c7ed8fad3c092bf455abf99af4a7a058383 /plugins/FTPFileYM/src
parent73504917190e8d183212ec62ad1668d3e72901a7 (diff)
some code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@7499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src')
-rw-r--r--plugins/FTPFileYM/src/ftpfile.cpp2
-rw-r--r--plugins/FTPFileYM/src/job_packer.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp
index 225a1c6d82..1240f4aa89 100644
--- a/plugins/FTPFileYM/src/ftpfile.cpp
+++ b/plugins/FTPFileYM/src/ftpfile.cpp
@@ -442,7 +442,7 @@ int Shutdown(WPARAM wParam, LPARAM lParam)
{
deleteTimer.deinit();
- if (manDlg) delete manDlg;
+ delete manDlg;
if (uDlg) SendMessage(uDlg->hwnd, WM_CLOSE, 0, 0);
UploadJob::jobDone.release();
diff --git a/plugins/FTPFileYM/src/job_packer.cpp b/plugins/FTPFileYM/src/job_packer.cpp
index cdfa799493..8002d2b0ed 100644
--- a/plugins/FTPFileYM/src/job_packer.cpp
+++ b/plugins/FTPFileYM/src/job_packer.cpp
@@ -52,7 +52,7 @@ void PackerJob::getZipFilePath()
}
}
- if (_tcslen(stzFileName) == 0)
+ if (stzFileName[0] == '\0')
_tcscpy(stzFileName, _T("archive"));
GetTempPath(SIZEOF(buff), buff);