aboutsummaryrefslogtreecommitdiffstats
path: root/ui/win32/file_dlg_win32.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-11-30 20:29:34 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2014-11-30 19:44:18 +0000
commit35b1bc5ec61260bc1890a2c991cdb7218946ae1f (patch)
tree19dd846909d14d296f80d5ac5c720688a88c896f /ui/win32/file_dlg_win32.c
parent6c7af1db583fc870df4c84163d87beb6c8010a1b (diff)
win32: use target file format when checking if it supports comments
Bug: 10656 Change-Id: Ib74f213630d6d382118c09b3cbf998b28cbc045e Reviewed-on: https://code.wireshark.org/review/5544 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/win32/file_dlg_win32.c')
-rw-r--r--ui/win32/file_dlg_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c
index c66b0f4537..9a2eed528c 100644
--- a/ui/win32/file_dlg_win32.c
+++ b/ui/win32/file_dlg_win32.c
@@ -264,7 +264,7 @@ win32_check_save_as_with_comments(HWND parent, capture_file *cf, int file_type)
comment_types = cf_comment_types(cf);
/* Does the file's format support all the comments we have? */
- if (wtap_dump_supports_comment_types(cf->cd_t, comment_types)) {
+ if (wtap_dump_supports_comment_types(file_type, comment_types)) {
/* Yes. Let the save happen; we can save all the comments, so
there's no need to delete them. */
return SAVE;