diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-06-12 07:47:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-06-12 07:47:14 +0000 |
commit | f9be24cd13351b0b848f51e6ebce85d9ce458644 (patch) | |
tree | 2e08e40da242a4924c4e61c97ec55b29047bd171 /gtk/capture_prefs.c | |
parent | f8a82d28825cbe7415b2a4e96e484bc83d28de94 (diff) |
On Windows, if "get_interface_list()" returns CANT_GET_INTERFACE_LIST
and the error message includes "Not enough storage is available
to process this command" or "The operation completed successfully",
suggest that the user install a WinPcap version later than 3.0 - this is
definitely a Frequently Asked Question on the Ethereal list.
svn path=/trunk/; revision=11143
Diffstat (limited to 'gtk/capture_prefs.c')
-rw-r--r-- | gtk/capture_prefs.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/capture_prefs.c b/gtk/capture_prefs.c index 044736c4fc..53cf3df463 100644 --- a/gtk/capture_prefs.c +++ b/gtk/capture_prefs.c @@ -1,7 +1,7 @@ /* capture_prefs.c * Dialog box for capture preferences * - * $Id: capture_prefs.c,v 1.36 2004/05/31 11:22:58 ulfl Exp $ + * $Id: capture_prefs.c,v 1.37 2004/06/12 07:47:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -664,16 +664,20 @@ static void ifopts_if_clist_add(void) { GList *if_list; - int err; + int err; char err_str[PCAP_ERRBUF_SIZE]; + gchar *cant_get_if_list_errstr; if_info_t *if_info; guint i; guint nitems; if_list = get_interface_list(&err, err_str); if (if_list == NULL && err == CANT_GET_INTERFACE_LIST) { - simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, - "Can't get list of interfaces: %s", err_str); + cant_get_if_list_errstr = + cant_get_if_list_error_message(err_str); + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", + cant_get_if_list_errstr); + g_free(cant_get_if_list_errstr); return; } |