[usb/usbehci]
authorMichael Martin <michael.martin@reactos.org>
Sun, 10 Jan 2010 09:03:53 +0000 (09:03 +0000)
committerMichael Martin <michael.martin@reactos.org>
Sun, 10 Jan 2010 09:03:53 +0000 (09:03 +0000)
- StartDevice: Remove ASSERT for unhanded resource types.
- Add case for CmResourceTypeDevicePrivate, and do nothing for it for now, will fix later if needed.
- Fixes crash on windows.

svn path=/trunk/; revision=45022

reactos/drivers/usb/usbehci/fdo.c

index 59a8971..c225b23 100644 (file)
@@ -520,10 +520,15 @@ StartDevice(PDEVICE_OBJECT DeviceObject, PCM_PARTIAL_RESOURCE_LIST raw, PCM_PART
                 DPRINT("Dma Port: %d\n", resource->u.Dma.Port);
                 break;
             }
+            case CmResourceTypeDevicePrivate:
+            {
+                /* Windows does this. */
+                DPRINT1("CmResourceTypeDevicePrivate not handled\n");
+                break;
+            }
             default:
             {
-                DPRINT1("PNP Manager gave invalid resource type!! Notify Developers!\n");
-                ASSERT(FALSE);
+                DPRINT1("PNP Manager gave resource type not handled!! Notify Developers!\n");
                 break;
             }
         }