Author: janderwald
Date: Fri Jan 27 14:08:40 2012
New Revision: 55244
URL:
http://svn.reactos.org/svn/reactos?rev=55244&view=rev
Log:
[HIDCLASS]
- IOCTL are only supported for PDOs
Modified:
branches/usb-bringup-trunk/drivers/hid/hidclass/hidclass.c
Modified: branches/usb-bringup-trunk/drivers/hid/hidclass/hidclass.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/hid/h…
==============================================================================
--- branches/usb-bringup-trunk/drivers/hid/hidclass/hidclass.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/hid/hidclass/hidclass.c [iso-8859-1] Fri Jan 27
14:08:40 2012
@@ -723,6 +723,21 @@
// get device extension
//
CommonDeviceExtension =
(PHIDCLASS_COMMON_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
+
+ //
+ // only PDO are supported
+ //
+ if (CommonDeviceExtension->IsFDO)
+ {
+ //
+ // invalid request
+ //
+ DPRINT1("[HIDCLASS] DeviceControl Irp for FDO arrived\n");
+ Irp->IoStatus.Status = STATUS_INVALID_PARAMETER;
+ IoCompleteRequest(Irp, IO_NO_INCREMENT);
+ return STATUS_INVALID_PARAMETER_1;
+ }
+
ASSERT(CommonDeviceExtension->IsFDO == FALSE);
//