projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41b94fd
)
[USBPORT] Fix level check in USBDI_QueryBusInformation (CID 1419403).
author
Thomas Faber
<thomas.faber@reactos.org>
Tue, 10 Oct 2017 22:24:29 +0000
(
00:24
+0200)
committer
Thomas Faber
<ThFabba@users.noreply.github.com>
Fri, 13 Oct 2017 21:36:29 +0000
(23:36 +0200)
drivers/usb/usbport/iface.c
patch
|
blob
|
history
diff --git
a/drivers/usb/usbport/iface.c
b/drivers/usb/usbport/iface.c
index
58a5d81
..
39f42e7
100644
(file)
--- 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;