mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[HDAUDBUS] Forward FDO requests instead of completing them.
This commit is contained in:
parent
ce6960b3f5
commit
789cfd3ddc
1 changed files with 11 additions and 13 deletions
|
@ -101,28 +101,26 @@ HDA_FdoPnp(
|
||||||
{
|
{
|
||||||
case IRP_MN_START_DEVICE:
|
case IRP_MN_START_DEVICE:
|
||||||
Status = HDA_FDOStartDevice(DeviceObject, Irp);
|
Status = HDA_FDOStartDevice(DeviceObject, Irp);
|
||||||
break;
|
Irp->IoStatus.Status = Status;
|
||||||
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
|
return Status;
|
||||||
case IRP_MN_QUERY_DEVICE_RELATIONS:
|
case IRP_MN_QUERY_DEVICE_RELATIONS:
|
||||||
/* handle bus device relations */
|
/* handle bus device relations */
|
||||||
if (IoStack->Parameters.QueryDeviceRelations.Type == BusRelations)
|
if (IoStack->Parameters.QueryDeviceRelations.Type == BusRelations)
|
||||||
{
|
{
|
||||||
Status = HDA_FDOQueryBusRelations(DeviceObject, Irp);
|
Status = HDA_FDOQueryBusRelations(DeviceObject, Irp);
|
||||||
|
Irp->IoStatus.Status = Status;
|
||||||
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
Status = Irp->IoStatus.Status;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
/* get default status */
|
|
||||||
Status = Irp->IoStatus.Status;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
Irp->IoStatus.Status = Status;
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
return IoCallDriver(FDODeviceExtension->LowerDevice, Irp);
|
||||||
|
|
||||||
return Status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
Loading…
Reference in a new issue