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>
This commit is contained in:
Pascal Quantin 2014-11-30 20:29:34 +01:00
parent 6c7af1db58
commit 35b1bc5ec6
1 changed files with 1 additions and 1 deletions

View File

@ -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;