aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/packet_win.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-26 19:11:23 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-05-26 19:11:23 +0000
commit2ec4f9e91612934c7c60dca4035db0112a8217c2 (patch)
treeb72e1350067ce80a8a61c6b82bf6157a2223f7a0 /gtk/packet_win.c
parente56b0df98f54a77bd7e8e112ba722e45f27bd0d5 (diff)
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) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32980 f5534014-38df-0310-8fa8-9805f1628bb7
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;