mirror of
https://github.com/reactos/reactos.git
synced 2025-07-26 23:33:50 +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)
|
if (IoStack->Parameters.QueryDeviceRelations.Type != BusRelations)
|
||||||
{
|
{
|
||||||
/* FDO always only handles bus relations */
|
/* FDO always only handles bus relations */
|
||||||
return USBCCGP_SyncForwardIrp(FDODeviceExtension->NextDeviceObject, Irp);
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Go through array and count device objects */
|
/* Go through array and count device objects */
|
||||||
|
@ -159,6 +159,7 @@ FDO_DeviceRelations(
|
||||||
|
|
||||||
/* Store result */
|
/* Store result */
|
||||||
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
|
Irp->IoStatus.Information = (ULONG_PTR)DeviceRelations;
|
||||||
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
/* Request completed successfully */
|
/* Request completed successfully */
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
@ -420,7 +421,14 @@ FDO_HandlePnp(
|
||||||
{
|
{
|
||||||
/* Handle device relations */
|
/* Handle device relations */
|
||||||
Status = FDO_DeviceRelations(DeviceObject, Irp);
|
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:
|
case IRP_MN_QUERY_CAPABILITIES:
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue