From 341d01e83521893e3a1a4c0f7f4e4d7050ba263d Mon Sep 17 00:00:00 2001 From: Andrej Kacian Date: Tue, 11 Oct 2016 13:04:36 +0200 Subject: [PATCH] Fix wrong argument order in Windows file choosers. --- src/gtk/w32_filesel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/w32_filesel.c b/src/gtk/w32_filesel.c index 651ad8da4..418c9989f 100644 --- a/src/gtk/w32_filesel.c +++ b/src/gtk/w32_filesel.c @@ -219,7 +219,7 @@ gchar *filesel_select_file_open_with_filter(const gchar *title, const gchar *pat GError *error = NULL; o.lpstrFile = g_malloc0(MAXPATHLEN); - if (!_file_open_dialog(title, path, filter, FALSE)) { + if (!_file_open_dialog(path, title, filter, FALSE)) { g_free(o.lpstrFile); return NULL; } @@ -247,7 +247,7 @@ GList *filesel_select_multiple_files_open_with_filter(const gchar *title, GError *error = NULL; o.lpstrFile = g_malloc0(MAXPATHLEN); - if (!_file_open_dialog(title, path, filter, TRUE)) { + if (!_file_open_dialog(path, title, filter, TRUE)) { g_free(o.lpstrFile); return NULL; } -- 2.25.1