aboutsummaryrefslogtreecommitdiffstats
path: root/capture.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-11 01:23:25 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-11 01:23:25 +0000
commitae4b48d9616ce1364dffe2ae2f959ae5f47117e4 (patch)
treea51e826d510cce43db5779afb98d8e2a705da366 /capture.c
parent0ae3628a21cf8805f34beaee553853439901c667 (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10026 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture.c')
-rw-r--r--capture.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/capture.c b/capture.c
index 7bd3a8d714..6221a77252 100644
--- a/capture.c
+++ b/capture.c
@@ -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;