From: Thomas Faber Date: Tue, 10 Oct 2017 22:24:29 +0000 (+0200) Subject: [USBPORT] Fix level check in USBDI_QueryBusInformation (CID 1419403). X-Git-Tag: 0.4.8-dev~112 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=b5289a2f6e1359970938f0dc89e0bd3e946411d6;ds=sidebyside [USBPORT] Fix level check in USBDI_QueryBusInformation (CID 1419403). --- diff --git a/drivers/usb/usbport/iface.c b/drivers/usb/usbport/iface.c index 58a5d81a73d..39f42e77bab 100644 --- a/drivers/usb/usbport/iface.c +++ b/drivers/usb/usbport/iface.c @@ -682,7 +682,7 @@ USBDI_QueryBusInformation(IN PVOID BusContext, DPRINT("USBDI_QueryBusInformation: Level - %p\n", Level); - if ((Level != 0) || (Level != 1)) + if ((Level != 0) && (Level != 1)) { DPRINT1("USBDI_QueryBusInformation: Level should be 0 or 1\n"); return STATUS_NOT_SUPPORTED;