https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b5289a2f6e1359970938f0...
commit b5289a2f6e1359970938f0dc89e0bd3e946411d6 Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Wed Oct 11 00:24:29 2017 +0200
[USBPORT] Fix level check in USBDI_QueryBusInformation (CID 1419403). --- drivers/usb/usbport/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/usbport/iface.c b/drivers/usb/usbport/iface.c index 58a5d81a73..39f42e77ba 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;