diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2006-01-21 14:36:04 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2006-01-21 14:36:04 +0000 |
commit | 89a40818e25914828d43a90bba8598fc914c83eb (patch) | |
tree | bf63ce9f975387f084a4576699dfeed6fc7b8978 /gtk/capture_if_details_dlg.c | |
parent | a052b3a98b5ddb839ad5c7bb22c8ed06cfca3f58 (diff) |
bugfix #709: don't g_assert returned (mandatory) length of some NDIS driver functions.
simply ignore the length returned in that cases
this way, we may "print" buggy data, but that's what the driver returned ...
svn path=/trunk/; revision=17066
Diffstat (limited to 'gtk/capture_if_details_dlg.c')
-rw-r--r-- | gtk/capture_if_details_dlg.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk/capture_if_details_dlg.c b/gtk/capture_if_details_dlg.c index 188a3697d4..eda8b5c49b 100644 --- a/gtk/capture_if_details_dlg.c +++ b/gtk/capture_if_details_dlg.c @@ -938,7 +938,6 @@ capture_if_details_general(GtkWidget *table, GtkWidget *main_vb, guint *row, LPA length = sizeof(ushort_value); if (wpcap_packet_request(adapter, OID_GEN_DRIVER_VERSION, FALSE /* !set */, (char *) &ushort_value, &length)) { - g_assert(length == 2); g_snprintf(string_buff, DETAILS_STR_MAX, "%u.%u", ushort_value / 0x100, ushort_value % 0x100); } else { g_snprintf(string_buff, DETAILS_STR_MAX, "-"); @@ -947,7 +946,6 @@ capture_if_details_general(GtkWidget *table, GtkWidget *main_vb, guint *row, LPA length = sizeof(uint_value); if (wpcap_packet_request(adapter, OID_GEN_VENDOR_DRIVER_VERSION, FALSE /* !set */, (char *) &uint_value, &length)) { - g_assert(length == 4); /* XXX - what's the correct output format? */ g_snprintf(string_buff, DETAILS_STR_MAX, "%u.%u (Hex: %X.%X)", (uint_value / 0x10000 ) % 0x10000, |