diff options
-rw-r--r-- | plugins/Ping/src/options.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Ping/src/options.cpp b/plugins/Ping/src/options.cpp index ed5b07a46e..a4775eb105 100644 --- a/plugins/Ping/src/options.cpp +++ b/plugins/Ping/src/options.cpp @@ -81,13 +81,15 @@ static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA break;
case IDC_BTN_LOGBROWSE:
{
+ TCHAR filter[MAX_PATH];
+ mir_sntprintf(filter, SIZEOF(filter), _T("%s%c*.txt%c%s%c*.*%c"), TranslateT("Text Files (*.txt)"), 0, 0, TranslateT("All Files"), 0, 0);
OPENFILENAME ofn = {0};
ofn.lStructSize = sizeof(ofn);
ofn.lpstrFile = options.log_filename;
ofn.hwndOwner = hwndDlg;
ofn.nMaxFile = SIZEOF(options.log_filename);
ofn.lpstrTitle = TranslateT("Open log file");
- ofn.lpstrFilter = LPGENT("All\0*.*\0Text\0*.TXT\0");
+ ofn.lpstrFilter = filter;
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
|