mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[USBHUB]
- Check if there is device description buffer, as some usb devices don't provide one svn path=/branches/usb-bringup-trunk/; revision=55070
This commit is contained in:
@@ -429,7 +429,17 @@ USBHUB_PdoQueryDeviceText(
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user