mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[USBCCGP] Don't handle IRP_MN_QUERY_DEVICE_TEXT requests other than device description.
This commit is contained in:
parent
0d15b2a3cb
commit
823101274a
1 changed files with 18 additions and 0 deletions
|
@ -21,14 +21,32 @@ USBCCGP_PdoHandleQueryDeviceText(
|
|||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN OUT PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION IoStack;
|
||||
LPWSTR Buffer;
|
||||
PPDO_DEVICE_EXTENSION PDODeviceExtension;
|
||||
LPWSTR GenericString = L"Composite USB Device";
|
||||
|
||||
//
|
||||
// get current irp stack location
|
||||
//
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
|
||||
//
|
||||
// get device extension
|
||||
//
|
||||
PDODeviceExtension = (PPDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||
|
||||
//
|
||||
// check if type is description
|
||||
//
|
||||
if (IoStack->Parameters.QueryDeviceText.DeviceTextType != DeviceTextDescription)
|
||||
{
|
||||
//
|
||||
// we only handle description
|
||||
//
|
||||
return Irp->IoStatus.Status;
|
||||
}
|
||||
|
||||
//
|
||||
// is there a device description
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue