From 0f7a4117a808c5786ab3c744004e1115cf926f8a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 May 2025 17:40:52 +0300 Subject: =?UTF-8?q?fixes=20#5018=20(Notes=20and=20Reminders:=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE=D0=B4=D1=8F=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BF=D1=83=D0=BD=D0=BA=D1=82=D1=8B=20=D0=B2?= =?UTF-8?q?=D1=8B=D0=BF=D0=B0=D0=B4=D0=B0=D1=8E=D1=89=D0=B5=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D1=8E=20=D0=B2=20=D0=B4=D0=B8=D0=B0=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=B5=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=D0=B0=20?= =?UTF-8?q?=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D1=8F=D0=B5=D0=BC=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D1=84=D0=B0=D0=B9=D0=BB=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/NotesAndReminders/src/options.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/NotesAndReminders/src/options.cpp') diff --git a/plugins/NotesAndReminders/src/options.cpp b/plugins/NotesAndReminders/src/options.cpp index 3142a15eb9..a085181e33 100644 --- a/plugins/NotesAndReminders/src/options.cpp +++ b/plugins/NotesAndReminders/src/options.cpp @@ -299,13 +299,14 @@ public: void onClick_Browse(CCtrlButton*) { - wchar_t s[MAX_PATH]; + wchar_t s[MAX_PATH], wszFilter[MAX_PATH]; GetDlgItemText(m_hwnd, IDC_EDIT_ALTBROWSER, s, _countof(s)); + mir_snwprintf(wszFilter, L"%s%c*.exe%c%s%c*.*%c", TranslateT("Executable Files"), 0, 0, TranslateT("All Files"), 0, 0); OPENFILENAME ofn = {0}; ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400; ofn.hwndOwner = m_hwnd; - ofn.lpstrFilter = TranslateT("Executable Files\0*.exe\0All Files\0*.*\0\0"); + ofn.lpstrFilter = wszFilter; ofn.lpstrFile = s; ofn.nMaxFile = _countof(s); ofn.lpstrTitle = TranslateT("Select Executable"); -- cgit v1.2.3