[USBCCGP] Don't handle IRP_MN_QUERY_DEVICE_TEXT requests other than device description.

This commit is contained in:
Thomas Faber 2019-03-06 14:58:46 +01:00
parent 0d15b2a3cb
commit 823101274a
No known key found for this signature in database
GPG key ID: 076E7C3D44720826

View file

@ -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
//