[HDAUDBUS] Forward FDO requests instead of completing them.

This commit is contained in:
Thomas Faber 2019-02-25 12:48:54 +01:00
parent ce6960b3f5
commit 789cfd3ddc
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -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