mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[CLASS2]
- Properly forward PNP IRPs to the lower device CORE-8911 svn path=/trunk/; revision=70308
This commit is contained in:
parent
b56eae0abf
commit
4ed942b77e
1 changed files with 9 additions and 3 deletions
|
@ -354,15 +354,15 @@ ScsiClassPlugPlay(
|
||||||
{
|
{
|
||||||
ASSERT(DeviceInfo->Signature == '2slc');
|
ASSERT(DeviceInfo->Signature == '2slc');
|
||||||
IoSkipCurrentIrpStackLocation(Irp);
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
return STATUS_SUCCESS;
|
return IoCallDriver(DeviceInfo->LowerDevice, Irp);
|
||||||
}
|
}
|
||||||
else if (IrpSp->MinorFunction == IRP_MN_REMOVE_DEVICE)
|
else if (IrpSp->MinorFunction == IRP_MN_REMOVE_DEVICE)
|
||||||
{
|
{
|
||||||
PCLASS_DEVICE_INFO DeviceInfo = DeviceObject->DeviceExtension;
|
|
||||||
|
|
||||||
ASSERT(DeviceInfo->Signature == '2slc');
|
ASSERT(DeviceInfo->Signature == '2slc');
|
||||||
ScsiClassRemoveDriveLetter(DeviceInfo);
|
ScsiClassRemoveDriveLetter(DeviceInfo);
|
||||||
|
|
||||||
|
IoForwardIrpSynchronously(DeviceInfo->LowerDevice, Irp);
|
||||||
|
|
||||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
|
|
||||||
|
@ -372,6 +372,12 @@ ScsiClassPlugPlay(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (DeviceInfo->Signature == '2slc')
|
||||||
|
{
|
||||||
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
|
return IoCallDriver(DeviceInfo->LowerDevice, Irp);
|
||||||
|
}
|
||||||
|
|
||||||
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
|
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
|
||||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
return STATUS_NOT_SUPPORTED;
|
return STATUS_NOT_SUPPORTED;
|
||||||
|
|
Loading…
Reference in a new issue