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>
This commit is contained in:
parent
12cc2ca8f4
commit
99e645bfdb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue