From 727b913bbd2b41c6ece202f240f69e2f621833ac Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 11 Feb 2004 01:23:25 +0000 Subject: 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 --- capture.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'capture.c') 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 @@ -130,11 +130,11 @@ #include #include -#include #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; -- cgit v1.2.3