mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +00:00
[USBPORT] Leave IRP status untouched for unhandled interfaces.
Found by Driver Verifier.
This commit is contained in:
parent
12a66769fc
commit
267f5633ee
1 changed files with 3 additions and 3 deletions
|
@ -804,7 +804,7 @@ USBPORT_PdoQueryInterface(IN PDEVICE_OBJECT FdoDevice,
|
|||
DPRINT1("USB_BUS_INTERFACE_HUB_GUID version %x not supported!\n",
|
||||
IoStack->Parameters.QueryInterface.Version);
|
||||
|
||||
return STATUS_NOT_SUPPORTED; // Version not supported
|
||||
return Irp->IoStatus.Status; // Version not supported
|
||||
}
|
||||
|
||||
/* Interface version 0 */
|
||||
|
@ -864,7 +864,7 @@ USBPORT_PdoQueryInterface(IN PDEVICE_OBJECT FdoDevice,
|
|||
DPRINT1("USB_BUS_INTERFACE_USBDI_GUID version %x not supported!\n",
|
||||
IoStack->Parameters.QueryInterface.Version);
|
||||
|
||||
return STATUS_NOT_SUPPORTED; // Version not supported
|
||||
return Irp->IoStatus.Status; // Version not supported
|
||||
}
|
||||
|
||||
/* Interface version 0 */
|
||||
|
@ -904,5 +904,5 @@ USBPORT_PdoQueryInterface(IN PDEVICE_OBJECT FdoDevice,
|
|||
}
|
||||
}
|
||||
|
||||
return STATUS_NOT_SUPPORTED;
|
||||
return Irp->IoStatus.Status;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue