mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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:
|
||||
Status = HDA_FDOStartDevice(DeviceObject, Irp);
|
||||
break;
|
||||
Irp->IoStatus.Status = Status;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
return Status;
|
||||
case IRP_MN_QUERY_DEVICE_RELATIONS:
|
||||
/* handle bus device relations */
|
||||
if (IoStack->Parameters.QueryDeviceRelations.Type == BusRelations)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
Irp->IoStatus.Status = Status;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
||||
return Status;
|
||||
IoSkipCurrentIrpStackLocation(Irp);
|
||||
return IoCallDriver(FDODeviceExtension->LowerDevice, Irp);
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
|
|
Loading…
Reference in a new issue