From 6d7e8af75f9712f08f6cf436c355d720e31cb945 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 22 Jan 2013 12:29:03 +0000 Subject: - FTPFile: fix (patch from person) git-svn-id: http://svn.miranda-ng.org/main/trunk@3228 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FTPFileYM/src/job_generic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/FTPFileYM') 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"); -- cgit v1.2.3