diff options
Diffstat (limited to 'plugins/FTPFileYM')
-rw-r--r-- | plugins/FTPFileYM/src/job_generic.cpp | 4 |
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");
|