Author: hpoussin
Date: Fri Nov 2 16:01:15 2007
New Revision: 30068
URL:
http://svn.reactos.org/svn/reactos?rev=30068&view=rev
Log:
Report STATUS_NOT_SUPPORTED when IOCTL is not supported
Modified:
trunk/reactos/drivers/input/kbdclass/kbdclass.c
trunk/reactos/drivers/input/mouclass/mouclass.c
Modified: trunk/reactos/drivers/input/kbdclass/kbdclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/kbdclass/kbd…
==============================================================================
--- trunk/reactos/drivers/input/kbdclass/kbdclass.c (original)
+++ trunk/reactos/drivers/input/kbdclass/kbdclass.c Fri Nov 2 16:01:15 2007
@@ -120,7 +120,7 @@
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 @@
DPRINT1("Port DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
- Status = Irp->IoStatus.Status;
}
}
}
@@ -212,7 +211,6 @@
DPRINT1("Class DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
- Status = Irp->IoStatus.Status;
}
Irp->IoStatus.Status = Status;
Modified: trunk/reactos/drivers/input/mouclass/mouclass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/input/mouclass/mou…
==============================================================================
--- trunk/reactos/drivers/input/mouclass/mouclass.c (original)
+++ trunk/reactos/drivers/input/mouclass/mouclass.c Fri Nov 2 16:01:15 2007
@@ -120,7 +120,7 @@
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 @@
DPRINT1("Port DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
- Status = Irp->IoStatus.Status;
}
}
}
@@ -189,7 +188,6 @@
DPRINT1("Class DO stub for major function 0x%lx\n",
IoGetCurrentIrpStackLocation(Irp)->MajorFunction);
ASSERT(FALSE);
- Status = Irp->IoStatus.Status;
}
Irp->IoStatus.Status = Status;