diff options
author | AndersBroman <anders.broman@ericsson.com> | 2018-02-09 10:50:12 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2018-02-09 11:09:31 +0000 |
commit | 99e645bfdb48349c3adcbe1fe22b97ef801c944b (patch) | |
tree | b5f850347332acd9beac3b4f84b143d715551662 | |
parent | 12cc2ca8f4fcc74e4de9905f2f6650855abeaf0e (diff) |
Do changes from Generalize wtap_pkthdr into a structure for packet and
non-packet records for file_dlg_win32.c
Change-Id: I34ce10e574036b2d857675008c7109d5e38be6e7
Reviewed-on: https://code.wireshark.org/review/25710
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r-- | ui/win32/file_dlg_win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c index 0e9803936b..cbf959782f 100644 --- a/ui/win32/file_dlg_win32.c +++ b/ui/win32/file_dlg_win32.c @@ -1105,7 +1105,7 @@ preview_set_file_info(HWND of_hwnd, gchar *preview_file) { HWND cur_ctrl; int i; wtap *wth; - const struct wtap_pkthdr *phdr; + const wtap_rec *rec; int err = 0; gchar *err_info; TCHAR string_buff[PREVIEW_STR_MAX]; @@ -1178,8 +1178,8 @@ preview_set_file_info(HWND of_hwnd, gchar *preview_file) { time(&time_preview); while ( (wtap_read(wth, &err, &err_info, &data_offset)) ) { - phdr = wtap_phdr(wth); - cur_time = nstime_to_sec( (const nstime_t *) &phdr->ts ); + rec = wtap_get_rec(wth); + cur_time = nstime_to_sec( (const nstime_t *) &rec->ts ); if(packet == 0) { start_time = cur_time; stop_time = cur_time; |