Changeset 11311 in vbox for trunk/src/VBox/VMM/PDMDevice.cpp
- Timestamp:
- Aug 8, 2008 11:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMDevice.cpp
r11261 r11311 2411 2411 */ 2412 2412 unsigned iBus = 0; 2413 for (iBus = 0; iBus < ELEMENTS(pVM->pdm.s.aPciBuses); iBus++)2413 for (iBus = 0; iBus < RT_ELEMENTS(pVM->pdm.s.aPciBuses); iBus++) 2414 2414 if (!pVM->pdm.s.aPciBuses[iBus].pDevInsR3) 2415 2415 break; 2416 if (iBus >= ELEMENTS(pVM->pdm.s.aPciBuses))2417 { 2418 AssertMsgFailed(("Too many PCI buses. Max=%u\n", ELEMENTS(pVM->pdm.s.aPciBuses)));2416 if (iBus >= RT_ELEMENTS(pVM->pdm.s.aPciBuses)) 2417 { 2418 AssertMsgFailed(("Too many PCI buses. Max=%u\n", RT_ELEMENTS(pVM->pdm.s.aPciBuses))); 2419 2419 LogFlow(("pdmR3DevHlp_PCIBusRegister: caller='%s'/%d: returns %Vrc (pci bus)\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VERR_INVALID_PARAMETER)); 2420 2420 return VERR_INVALID_PARAMETER;
Note:
See TracChangeset
for help on using the changeset viewer.