summaryrefslogtreecommitdiff
path: root/gtk/packet_win.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-05-26 19:11:23 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-05-26 19:11:23 +0000
commit65ee4e797adad6f26d5672bc0b4fbd00d7e41301 (patch)
treeb72e1350067ce80a8a61c6b82bf6157a2223f7a0 /gtk/packet_win.c
parenta59da6ffd8d21d01eda12e61ebf1387fed0ae4dd (diff)
downloadwireshark-65ee4e797adad6f26d5672bc0b4fbd00d7e41301.tar.gz
From Jakub Zawadzki:
New functions: cf_read_frame_r, cf_read_frame It's much easier to write: cf_read_frame (cf, fdata, &err, &err_info) Than: wtap_seek_read (cf->wth, fdata->file_off, &cf->pseudo_header, cf->pd, fdata->cap_len, &err, &err_info) svn path=/trunk/; revision=32980
Diffstat (limited to 'gtk/packet_win.c')
-rw-r--r--gtk/packet_win.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/packet_win.c b/gtk/packet_win.c
index 2c5b7edfb8..a296f0a816 100644
--- a/gtk/packet_win.c
+++ b/gtk/packet_win.c
@@ -144,8 +144,7 @@ void new_window_cb(GtkWidget *w _U_)
#ifdef NEW_PACKET_LIST
/* With the new packetlists "lazy columns" it's neccesary to reread the frame */
- if (!wtap_seek_read(cfile.wth, cfile.current_frame->file_off, &cfile.pseudo_header,
- cfile.pd, cfile.current_frame->cap_len, &err, &err_info)) {
+ if (!cf_read_frame(&cfile, cfile.current_frame, &err, &err_info)) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
cf_read_error_message(err, err_info), cfile.filename);
return;