Author: janderwald
Date: Fri Dec 7 18:44:14 2012
New Revision: 57816
URL:
http://svn.reactos.org/svn/reactos?rev=57816&view=rev
Log:
[HIDUSB]
- Retry retrieving report descriptor with old hid version
- #CORE-6575 for details
Modified:
trunk/reactos/drivers/hid/hidusb/hidusb.c
Modified: trunk/reactos/drivers/hid/hidusb/hidusb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/hid/hidusb/hidusb.…
==============================================================================
--- trunk/reactos/drivers/hid/hidusb/hidusb.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/hid/hidusb/hidusb.c [iso-8859-1] Fri Dec 7 18:44:14 2012
@@ -651,10 +651,15 @@
{
//
// failed to get descriptor
- //
- DPRINT("[HIDUSB] failed to get report descriptor with %x\n", Status);
- ASSERT(FALSE);
- return Status;
+ // 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);
+ return Status;
+ }
}
//
@@ -1298,7 +1303,7 @@
//
// print status
//
- DPRINT("Status %x\n", Status);
+ DPRINT1("Status %x\n", Status);
return Status;
}