VirtualBox

Changeset 11311 in vbox for trunk/src/VBox/VMM/PDMDevice.cpp


Ignore:
Timestamp:
Aug 8, 2008 11:31:54 PM (16 years ago)
Author:
vboxsync
Message:

VMM: ELEMENTS -> RT_ELEMENTS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDevice.cpp

    r11261 r11311  
    24112411     */
    24122412    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++)
    24142414        if (!pVM->pdm.s.aPciBuses[iBus].pDevInsR3)
    24152415            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)));
    24192419        LogFlow(("pdmR3DevHlp_PCIBusRegister: caller='%s'/%d: returns %Vrc (pci bus)\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, VERR_INVALID_PARAMETER));
    24202420        return VERR_INVALID_PARAMETER;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette