summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src
diff options
context:
space:
mode:
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);