diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2005-10-03 20:04:06 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2005-10-03 20:04:06 +0000 |
commit | 8b696f70b8808f97594a4cb22b02d00cea9af0ff (patch) | |
tree | 18a03022aefc6ce4a04b2db16919493ea2d8bdce /gtk/capture_dlg.c | |
parent | e0e8cb76a389c59cf4cdeff3eec2768c0adbb955 (diff) | |
download | wireshark-8b696f70b8808f97594a4cb22b02d00cea9af0ff.tar.gz wireshark-8b696f70b8808f97594a4cb22b02d00cea9af0ff.tar.bz2 wireshark-8b696f70b8808f97594a4cb22b02d00cea9af0ff.zip |
Win32: don't crash if Capture/Start is clicked and WinPcap is not installed.
svn path=/trunk/; revision=16093
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r-- | gtk/capture_dlg.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 26bfd545fe..f5a91e790d 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -1263,6 +1263,29 @@ capture_start_cb(GtkWidget *w _U_, gpointer d _U_) { gpointer dialog; +#ifdef _WIN32 + /* Is WPcap loaded? */ + if (!has_wpcap) { + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, + "Unable to load WinPcap (wpcap.dll); Ethereal will not be able\n" + "to capture packets.\n\n" + "In order to capture packets, WinPcap must be installed; see\n" + "\n" + " http://www.winpcap.org/\n" + "\n" + "or the mirror at\n" + "\n" + " http://winpcap.mirror.ethereal.com/\n" + "\n" + "or the mirror at\n" + "\n" + " http://www.mirrors.wiretapped.net/security/packet-capture/winpcap/\n" + "\n" + "for a downloadable version of WinPcap and for instructions\n" + "on how to install WinPcap."); + return; + } +#endif /* get the values and close the options dialog */ if(cap_open_w) { |