mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[USBCCGP] Always forward device relations IRPs.
This commit is contained in:
parent
16d136a63e
commit
6c3a10c55a
1 changed files with 10 additions and 2 deletions
|
@ -119,7 +119,7 @@ FDO_DeviceRelations(
|
|||
if (IoStack->Parameters.QueryDeviceRelations.Type != BusRelations)
|
||||
{
|
||||
/* FDO always only handles bus relations */
|
||||
return USBCCGP_SyncForwardIrp(FDODeviceExtension->NextDeviceObject, Irp);
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/* Go through array and count device objects */
|
||||
|
@ -159,6 +159,7 @@ FDO_DeviceRelations(
|
|||
|
||||
/* Store result */
|
||||
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
|
||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
|
||||
/* Request completed successfully */
|
||||
return STATUS_SUCCESS;
|
||||
|
@ -420,7 +421,14 @@ FDO_HandlePnp(
|
|||
{
|
||||
/* Handle device relations */
|
||||
Status = FDO_DeviceRelations(DeviceObject, Irp);
|
||||
break;
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
/* Forward irp to next device object */
|
||||
IoSkipCurrentIrpStackLocation(Irp);
|
||||
return IoCallDriver(FDODeviceExtension->NextDeviceObject, Irp);
|
||||
}
|
||||
case IRP_MN_QUERY_CAPABILITIES:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue