From d7c409d1d9bc4c6c151df520bdaf68514e9d256a Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Fri, 7 Dec 2012 18:44:14 +0000 Subject: [PATCH] [HIDUSB] - Retry retrieving report descriptor with old hid version - #CORE-6575 for details svn path=/trunk/; revision=57816 --- reactos/drivers/hid/hidusb/hidusb.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/reactos/drivers/hid/hidusb/hidusb.c b/reactos/drivers/hid/hidusb/hidusb.c index 34714479d7f..7d5d2398384 100644 --- a/reactos/drivers/hid/hidusb/hidusb.c +++ b/reactos/drivers/hid/hidusb/hidusb.c @@ -651,10 +651,15 @@ HidUsb_GetReportDescriptor( { // // failed to get descriptor + // try with old hid version // - DPRINT("[HIDUSB] failed to get report descriptor with %x\n", Status); - ASSERT(FALSE); - return Status; + 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 @@ Hid_SetIdle( // // print status // - DPRINT("Status %x\n", Status); + DPRINT1("Status %x\n", Status); return Status; }