mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 00:28:56 +00:00
[HIDCLASS]
- IOCTL are only supported for PDOs svn path=/branches/usb-bringup-trunk/; revision=55244
This commit is contained in:
parent
0a2f895e36
commit
fc557e4320
|
@ -723,6 +723,21 @@ HidClass_DeviceControl(
|
||||||
// get device extension
|
// get device extension
|
||||||
//
|
//
|
||||||
CommonDeviceExtension = (PHIDCLASS_COMMON_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
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);
|
ASSERT(CommonDeviceExtension->IsFDO == FALSE);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue