diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-01-23 23:17:03 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-01-23 23:17:03 +0000 |
commit | 3b1f82d06345b7f6979a1d5bf70bad7dc247889e (patch) | |
tree | 7bfbe6e77a100f1886d6e53a4f93300eb84f2dfa /ui/win32 | |
parent | dc0ad2aac79c00928a4cab51521bd24b830861a7 (diff) |
In the table of capture file types, have:
a field that gives the default extension for the file type,
*without* a leading "." (i.e., just the extension, not the "."
that separates it from the rest of the file name), which is NULL
if there are no known extensions;
a field that gives a semicolon-separated list of *other*
extensions, without "*." or ".", which is NULL if there are no
known extensions or there are no known extensions other than the
default.
Rename wtap_file_extension_default_string() to
wtap_default_file_extension() (matches the name of the field).
svn path=/trunk/; revision=40678
Diffstat (limited to 'ui/win32')
-rw-r--r-- | ui/win32/file_dlg_win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c index 1c3ed0239a..1bf4284470 100644 --- a/ui/win32/file_dlg_win32.c +++ b/ui/win32/file_dlg_win32.c @@ -322,8 +322,8 @@ win32_save_as_file(HWND h_wnd, action_after_save_e action_after_save, gpointer a file_name8 = g_string_new(utf_16to8(file_name16)); file_last_dot = strrchr(file_name8->str,'.'); if(file_last_dot == NULL || strlen(file_name8->str)-(file_last_dot-file_name8->str) > 5+1) { - if(wtap_file_extension_default_string(filetype) != NULL) { - g_string_append_printf(file_name8, ".%s", wtap_file_extension_default_string(filetype)); + if(wtap_default_file_extension(filetype) != NULL) { + g_string_append_printf(file_name8, ".%s", wtap_default_file_extension(filetype)); } } |