mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
[HIDUSB]
- Pass the interface number in the request when issuing hid get report descriptor - Fixes wrong report descriptors being obtained svn path=/branches/usb-bringup-trunk/; revision=55322
This commit is contained in:
parent
c6e7f39b35
commit
6ce77d6cb7
|
@ -646,7 +646,7 @@ HidUsb_GetReportDescriptor(
|
||||||
// FIXME: support old hid version
|
// FIXME: support old hid version
|
||||||
//
|
//
|
||||||
BufferLength = HidDeviceExtension->HidDescriptor->DescriptorList[0].wReportLength;
|
BufferLength = HidDeviceExtension->HidDescriptor->DescriptorList[0].wReportLength;
|
||||||
Status = Hid_GetDescriptor(DeviceObject, URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE, sizeof(struct _URB_CONTROL_DESCRIPTOR_REQUEST), &Report, &BufferLength, HidDeviceExtension->HidDescriptor->DescriptorList[0].bReportType, 0, 0);
|
Status = Hid_GetDescriptor(DeviceObject, URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE, sizeof(struct _URB_CONTROL_DESCRIPTOR_REQUEST), &Report, &BufferLength, HidDeviceExtension->HidDescriptor->DescriptorList[0].bReportType, 0, HidDeviceExtension->InterfaceInfo->InterfaceNumber);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue