summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Mao <[email protected]>2017-03-15 17:09:30 -0700
committerGitHub <[email protected]>2017-03-15 17:09:30 -0700
commit2910c9a7571974c58808102d80592b9863f9bcfe (patch)
treebad563c2049e71d90ccfafa5c6a620e0eb6c3d05
parent42a3483b5ab5be74ad07c7d8db86e5458c42660a (diff)
parent965839e1d397869c402c983db49a2707d511501a (diff)
Merge pull request #80 from hnebelung/bugfix/DisplayConnectionInfo
Fix DisplayConnectionInfo
-rw-r--r--usb/usbview/display.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/usb/usbview/display.c b/usb/usbview/display.c
index 6d7846ee..9ce20e51 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
{