diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-04-26 21:15:51 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-04-26 21:15:51 +0000 |
commit | 056b3d977ad33fe26de0d4af7dfe8ab11665c6bf (patch) | |
tree | 6b77beb52c70f8fe2a302ee126806a70502df5b6 /gtk | |
parent | 301a5f1e3202e6b673c0b39795ec1d5a378d2390 (diff) |
Properly set our export file name before we try to use it. Fixes bug 894.
svn path=/trunk/; revision=18012
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/win32-file-dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/win32-file-dlg.c b/gtk/win32-file-dlg.c index 18998508d7..3ac5479bbf 100644 --- a/gtk/win32-file-dlg.c +++ b/gtk/win32-file-dlg.c @@ -429,7 +429,6 @@ win32_export_file(HWND h_wnd, export_type_e export_type) { print_args.format = PR_FMT_TEXT; print_args.to_file = TRUE; - print_args.file = utf_16to8(file_name); print_args.cmd = NULL; print_args.print_summary = TRUE; print_args.print_dissections = print_dissections_as_displayed; @@ -437,6 +436,7 @@ win32_export_file(HWND h_wnd, export_type_e export_type) { print_args.print_formfeed = FALSE; if (GetSaveFileName(&ofn)) { + print_args.file = utf_16to8(file_name); switch (ofn.nFilterIndex) { case export_type_text: /* Text */ print_args.stream = print_stream_text_new(TRUE, print_args.file); |