Report STATUS_NOT_SUPPORTED when IOCTL is not supported

svn path=/trunk/; revision=30068
This commit is contained in:
Hervé Poussineau 2007-11-02 13:01:15 +00:00
parent 4885fbac2a
commit fae0c09e4b
2 changed files with 2 additions and 6 deletions

View file

@ -120,7 +120,7 @@ ClassDeviceControl(
IN PIRP Irp)
{
PCLASS_DEVICE_EXTENSION DeviceExtension;
NTSTATUS Status = Irp->IoStatus.Status;
NTSTATUS Status = STATUS_NOT_SUPPORTED;
DPRINT("IRP_MJ_DEVICE_CONTROL\n");
@ -203,7 +203,6 @@ IrpStub(
DPRINT1("Port DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
Status = Irp->IoStatus.Status;
}
}
}
@ -212,7 +211,6 @@ IrpStub(
DPRINT1("Class DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
Status = Irp->IoStatus.Status;
}
Irp->IoStatus.Status = Status;

View file

@ -120,7 +120,7 @@ ClassDeviceControl(
IN PIRP Irp)
{
PCLASS_DEVICE_EXTENSION DeviceExtension;
NTSTATUS Status = Irp->IoStatus.Status;
NTSTATUS Status = STATUS_NOT_SUPPORTED;
DPRINT("IRP_MJ_DEVICE_CONTROL\n");
@ -180,7 +180,6 @@ IrpStub(
DPRINT1("Port DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
Status = Irp->IoStatus.Status;
}
}
}
@ -189,7 +188,6 @@ IrpStub(
DPRINT1("Class DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
Status = Irp->IoStatus.Status;
}
Irp->IoStatus.Status = Status;