mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +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
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ HidUsb_GetReportDescriptor(
|
|||
// FIXME: support old hid version
|
||||
//
|
||||
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))
|
||||
{
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue