From 965839e1d397869c402c983db49a2707d511501a Mon Sep 17 00:00:00 2001 From: "Nebelung, Hartmut" Date: Fri, 23 Sep 2016 10:36:00 +0200 Subject: Fix DisplayConnectionInfo Display the connection info correctly even if the ConnectionInfoV2 is not present. --- usb/usbview/display.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/usb/usbview/display.c b/usb/usbview/display.c index 3191d97f..318772be 100644 --- a/usb/usbview/display.c +++ b/usb/usbview/display.c @@ -1404,10 +1404,17 @@ DisplayConnectionInfo ( case UsbSuperSpeed: if(gDoAnnotation) { - AppendTextBuffer(" -> Device Bus Speed: Super%s\r\n", - ConnectionInfoV2->Flags.DeviceIsOperatingAtSuperSpeedPlusOrHigher - ? "SpeedPlus" - : "Speed"); + if (ConnectionInfoV2 != NULL) + { + AppendTextBuffer(" -> Device Bus Speed: Super%s\r\n", + ConnectionInfoV2->Flags.DeviceIsOperatingAtSuperSpeedPlusOrHigher + ? "SpeedPlus" + : "Speed"); + } + else + { + AppendTextBuffer(" -> Device Bus Speed: Super Speed\r\n"); + } } else { -- cgit v1.3.1