From 3e35c8a9b1dfa71d4d63f6348aa60ee922c4da5f Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 19 Apr 2002 20:49:28 +0000 Subject: [PATCH] On Windows, don't put the capture preferences item into the "Preferences" dialog box if we couldn't load WinPcap. svn path=/trunk/; revision=5204 --- gtk/prefs_dlg.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gtk/prefs_dlg.c b/gtk/prefs_dlg.c index 423298853c..25d12ac1e6 100644 --- a/gtk/prefs_dlg.c +++ b/gtk/prefs_dlg.c @@ -1,7 +1,7 @@ /* prefs_dlg.c * Routines for handling preferences * - * $Id: prefs_dlg.c,v 1.44 2002/03/05 12:03:27 guy Exp $ + * $Id: prefs_dlg.c,v 1.45 2002/04/19 20:49:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -364,6 +364,10 @@ prefs_cb(GtkWidget *w _U_, gpointer dummy _U_) cts.page++; #ifdef HAVE_LIBPCAP +#ifdef _WIN32 + /* Is WPcap loaded? */ + if (has_wpcap) { +#endif /* _WIN32 */ /* capture prefs */ frame = gtk_frame_new("Capture"); gtk_widget_show(GTK_WIDGET(frame)); @@ -377,7 +381,10 @@ prefs_cb(GtkWidget *w _U_, gpointer dummy _U_) gtk_ctree_node_set_row_data(GTK_CTREE(cts.ctree), ct_node, GINT_TO_POINTER(cts.page)); cts.page++; -#endif +#ifdef _WIN32 + } +#endif /* _WIN32 */ +#endif /* HAVE_LIBPCAP */ /* Name resolution prefs */ frame = gtk_frame_new("Name resolution");