Author: janderwald
Date: Sun Jan 22 14:51:32 2012
New Revision: 55070
URL:
http://svn.reactos.org/svn/reactos?rev=55070&view=rev
Log:
[USBHUB]
- Check if there is device description buffer, as some usb devices don't provide one
Modified:
branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c
Modified: branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c
URL:
http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbhub_new/pdo.c [iso-8859-1] Sun Jan 22
14:51:32 2012
@@ -429,7 +429,17 @@
case DeviceTextLocationInformation:
{
DPRINT1("IRP_MJ_PNP / IRP_MN_QUERY_DEVICE_TEXT /
DeviceTextDescription\n");
- SourceString = &ChildDeviceExtension->usTextDescription;
+
+ //
+ // does the device provide a text description
+ //
+ if (ChildDeviceExtension->usTextDescription->Buffer &&
ChildDeviceExtension->usTextDescription->Length)
+ {
+ //
+ // use device text
+ //
+ SourceString = &ChildDeviceExtension->usTextDescription;
+ }
break;
}
default: