diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-02-11 01:23:25 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-02-11 01:23:25 +0000 |
commit | 727b913bbd2b41c6ece202f240f69e2f621833ac (patch) | |
tree | a51e826d510cce43db5779afb98d8e2a705da366 /capture.c | |
parent | c7fd1b2b1357cf491eeb57d8313e5d33fd766094 (diff) | |
download | wireshark-727b913bbd2b41c6ece202f240f69e2f621833ac.tar.gz |
Add an "open_failure_alert_box()" routine to pop up an alert box for a
failed attempt to open/create a file.
Fix one call to pass the right value for the "for_writing" flag.
svn path=/trunk/; revision=10026
Diffstat (limited to 'capture.c')
-rw-r--r-- | capture.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,7 +1,7 @@ /* capture.c * Routines for packet capture windows * - * $Id: capture.c,v 1.237 2004/02/09 19:19:19 ulfl Exp $ + * $Id: capture.c,v 1.238 2004/02/11 01:23:23 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -130,11 +130,11 @@ #include <epan/packet.h> #include <epan/dfilter/dfilter.h> -#include <epan/filesystem.h> #include "file.h" #include "capture.h" #include "util.h" #include "pcap-util.h" +#include "alert_box.h" #include "simple_dialog.h" #include "prefs.h" #include "globals.h" @@ -322,8 +322,7 @@ do_capture(const char *save_file) if (capture_opts.ringbuffer_on) { ringbuf_error_cleanup(); } - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - file_open_error_message(errno, TRUE), capfile_name); + open_failure_alert_box(capfile_name, errno, TRUE); } g_free(capfile_name); return FALSE; |