mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[HIDUSB]
- Retry retrieving report descriptor with old hid version - #CORE-6575 for details svn path=/trunk/; revision=57816
This commit is contained in:
parent
3aeef6d10e
commit
d7c409d1d9
1 changed files with 9 additions and 4 deletions
|
@ -651,11 +651,16 @@ HidUsb_GetReportDescriptor(
|
|||
{
|
||||
//
|
||||
// failed to get descriptor
|
||||
// try with old hid version
|
||||
//
|
||||
BufferLength = HidDeviceExtension->HidDescriptor->DescriptorList[0].wReportLength;
|
||||
Status = Hid_GetDescriptor(DeviceObject, URB_FUNCTION_GET_DESCRIPTOR_FROM_ENDPOINT, sizeof(struct _URB_CONTROL_DESCRIPTOR_REQUEST), &Report, &BufferLength, HidDeviceExtension->HidDescriptor->DescriptorList[0].bReportType, 0, 0 /* FIXME*/);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("[HIDUSB] failed to get report descriptor with %x\n", Status);
|
||||
ASSERT(FALSE);
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// get current stack location
|
||||
|
@ -1298,7 +1303,7 @@ Hid_SetIdle(
|
|||
//
|
||||
// print status
|
||||
//
|
||||
DPRINT("Status %x\n", Status);
|
||||
DPRINT1("Status %x\n", Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue