IopGetBusTypeGuidIndex: Fix an infinite loop
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 13 Oct 2005 07:43:25 +0000 (07:43 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Thu, 13 Oct 2005 07:43:25 +0000 (07:43 +0000)
IopAssignDeviceResources: Allocate bus number resources

svn path=/trunk/; revision=18422

reactos/ntoskrnl/io/pnpmgr.c

index e4fdd12..bc30f00 100644 (file)
@@ -606,6 +606,7 @@ IopGetBusTypeGuidIndex(LPGUID BusTypeGuid)
             FoundIndex = i;
             goto Quickie;
         }
+        i++;
     }
 
     /* Check if we have to grow the list */
@@ -1280,7 +1281,7 @@ IopAssignDeviceResources(
                   = 0;
                break;
             }
-            /*case CmResourceTypeBusNumber:
+            case CmResourceTypeBusNumber:
             {
                DescriptorRaw->u.BusNumber.Start = DescriptorTranslated->u.BusNumber.Start
                   = ResourceDescriptor->u.BusNumber.MinBusNumber;
@@ -1289,7 +1290,7 @@ IopAssignDeviceResources(
                DescriptorRaw->u.BusNumber.Reserved = DescriptorTranslated->u.BusNumber.Reserved
                   = ResourceDescriptor->u.BusNumber.Reserved;
                break;
-            }*/
+            }
             /*CmResourceTypeDevicePrivate:
             case CmResourceTypePcCardConfig:
             case CmResourceTypeMfCardConfig: