summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-01-22 12:29:03 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-01-22 12:29:03 +0000
commit6d7e8af75f9712f08f6cf436c355d720e31cb945 (patch)
tree2c80aba5c41795beb6f60f43ad90ea6829862614 /plugins/FTPFileYM/src
parentffc8985ba6a12bd1e3531a6263e5d3adce09a970 (diff)
- FTPFile: fix (patch from person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3228 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FTPFileYM/src')
-rw-r--r--plugins/FTPFileYM/src/job_generic.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/FTPFileYM/src/job_generic.cpp b/plugins/FTPFileYM/src/job_generic.cpp
index 5ce7d3c504..a723c45931 100644
--- a/plugins/FTPFileYM/src/job_generic.cpp
+++ b/plugins/FTPFileYM/src/job_generic.cpp
@@ -45,10 +45,12 @@ GenericJob::~GenericJob()
int GenericJob::openFileDialog()
{
+ TCHAR temp[MAX_PATH] = _T("");
+ mir_sntprintf(temp, sizeof(temp), _T("%s\0*.*\0"), TranslateT("All Files (*.*)"));
OPENFILENAME ofn = {0};
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = 0;
- ofn.lpstrFilter = TranslateT("All Files (*.*)\0*.*\0");
+ ofn.lpstrFilter = temp;
ofn.nFilterIndex = 1;
ofn.lpstrFile = this->stzFilePath;
ofn.lpstrTitle = TranslateT("FTP File - Select files");