summaryrefslogtreecommitdiff
path: root/usb/usbview/xmlhelper.cpp
diff options
context:
space:
mode:
authorkarlf <[email protected]>2016-08-11 13:28:13 -0700
committerkarlf <[email protected]>2016-08-11 13:28:13 -0700
commit96eb96dfb613e4c745db6bd1f53a92fe7e2290fc (patch)
treead5f3ede5cbcd6b598677ce41bcf8318471bdd92 /usb/usbview/xmlhelper.cpp
parent687b274aa38fd05c8c26e3068932121876d7f745 (diff)
Updated for "Windows 10 Anniversary Update" (Version 1607)
Diffstat (limited to 'usb/usbview/xmlhelper.cpp')
-rw-r--r--usb/usbview/xmlhelper.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/usb/usbview/xmlhelper.cpp b/usb/usbview/xmlhelper.cpp
index cf39a87d..fc58840e 100644
--- a/usb/usbview/xmlhelper.cpp
+++ b/usb/usbview/xmlhelper.cpp
@@ -340,11 +340,11 @@ HRESULT XmlAddHostController(PSTR hcName, PUSBHOSTCONTROLLERINFO hcInfo)
}
else
{
- USB_CONTROLLER_FLAVOR flavor = hcInfo->ControllerInfo->ControllerFlavor;
-
// If protocol lookup failed based on service name, try Controller flavor
if(NULL != hcInfo->ControllerInfo)
{
+ USB_CONTROLLER_FLAVOR flavor = hcInfo->ControllerInfo->ControllerFlavor;
+
if(flavor == USB_HcGeneric)
{
hc->UsbProtocol = gcnew String(USB_GENERIC);
@@ -353,11 +353,11 @@ HRESULT XmlAddHostController(PSTR hcName, PUSBHOSTCONTROLLERINFO hcInfo)
{
hc->UsbProtocol = gcnew String(USB_1_1);
}
- else if(flavor >= UHCI_Generic && flavor < EHCI_Generic)
+ else if(flavor >= UHCI_Generic && flavor <= EHCI_Generic)
{
hc->UsbProtocol = gcnew String(USB_2_0);
}
- else if(flavor >= EHCI_Generic)
+ else if(flavor > EHCI_Generic)
{
hc->UsbProtocol = gcnew String(USB_3_0);
}