mirror of
https://github.com/reactos/reactos.git
synced 2024-10-25 07:26:45 +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
|
@ -651,10 +651,15 @@ HidUsb_GetReportDescriptor(
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// failed to get descriptor
|
// failed to get descriptor
|
||||||
|
// try with old hid version
|
||||||
//
|
//
|
||||||
DPRINT("[HIDUSB] failed to get report descriptor with %x\n", Status);
|
BufferLength = HidDeviceExtension->HidDescriptor->DescriptorList[0].wReportLength;
|
||||||
ASSERT(FALSE);
|
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*/);
|
||||||
return Status;
|
if (!NT_SUCCESS(Status))
|
||||||
|
{
|
||||||
|
DPRINT("[HIDUSB] failed to get report descriptor with %x\n", Status);
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -1298,7 +1303,7 @@ Hid_SetIdle(
|
||||||
//
|
//
|
||||||
// print status
|
// print status
|
||||||
//
|
//
|
||||||
DPRINT("Status %x\n", Status);
|
DPRINT1("Status %x\n", Status);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue