mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +00:00
[USBPORT] Fix level check in USBDI_QueryBusInformation (CID 1419403).
This commit is contained in:
parent
41b94fd17b
commit
b5289a2f6e
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ USBDI_QueryBusInformation(IN PVOID BusContext,
|
||||||
|
|
||||||
DPRINT("USBDI_QueryBusInformation: Level - %p\n", Level);
|
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");
|
DPRINT1("USBDI_QueryBusInformation: Level should be 0 or 1\n");
|
||||||
return STATUS_NOT_SUPPORTED;
|
return STATUS_NOT_SUPPORTED;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue