[USBHUB]
[reactos.git] / drivers / usb / usbhub_new / pdo.c
index 111f089..fe7e7eb 100644 (file)
@@ -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: