Author: janderwald
Date: Thu Feb 9 15:33:09 2012
New Revision: 55514
URL:
http://svn.reactos.org/svn/reactos?rev=55514&view=rev
Log:
[USBHUB]
- Ignore error when the device provides a string descriptor but no contents
- Fixes installation of cheap usb devices
Modified:
branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/fdo.c [iso-8859-1] Thu Feb 9
15:33:09 2012
@@ -1056,11 +1056,13 @@
if (!NT_SUCCESS(Status))
{
DPRINT1("USBHUB: GetUsbStringDescriptor failed with status %x\n",
Status);
- return Status;
- }
-
- UsbChildExtension->usTextDescription.MaximumLength =
UsbChildExtension->usTextDescription.Length;
- DPRINT1("Usb TextDescription %wZ\n",
&UsbChildExtension->usTextDescription);
+ RtlInitUnicodeString(&UsbChildExtension->usTextDescription,
"");
+ }
+ else
+ {
+ UsbChildExtension->usTextDescription.MaximumLength =
UsbChildExtension->usTextDescription.Length;
+ DPRINT1("Usb TextDescription %wZ\n",
&UsbChildExtension->usTextDescription);
+ }
}
//