From 35b1bc5ec61260bc1890a2c991cdb7218946ae1f Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Sun, 30 Nov 2014 20:29:34 +0100 Subject: 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 --- ui/win32/file_dlg_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/win32/file_dlg_win32.c') 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; -- cgit v1.2.3