[ros-diffs] [janderwald] 55070: [USBHUB] - Check if there is device description buffer, as some usb devices don't provide one
janderwald at svn.reactos.org
janderwald at svn.reactos.org
Sun Jan 22 14:51:32 UTC 2012
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/usbhub_new/pdo.c?rev=55070&r1=55069&r2=55070&view=diff
==============================================================================
--- 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:
More information about the Ros-diffs
mailing list