VirtualBox

Changeset 11266 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Aug 8, 2008 4:14:51 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34348
Message:

Devices: VBOX_SUCCESS/FAILURE -> RT_SUCCESS/FAILURE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPCI.cpp

    r11233 r11266  
    10181018            SSMR3PutMem(pSSMHandle, pDev->config, sizeof(pDev->config));
    10191019            rc = SSMR3PutS32(pSSMHandle, pDev->Int.s.iIrq);
    1020             if (VBOX_FAILURE(rc))
     1020            if (RT_FAILURE(rc))
    10211021                return rc;
    10221022        }
     
    10591059    /* separator */
    10601060    rc = SSMR3GetU32(pSSMHandle, &u32);
    1061     if (VBOX_FAILURE(rc))
     1061    if (RT_FAILURE(rc))
    10621062        return rc;
    10631063    if (u32 != (uint32_t)~0)
     
    10741074        /* index / terminator */
    10751075        rc = SSMR3GetU32(pSSMHandle, &u32);
    1076         if (VBOX_FAILURE(rc))
     1076        if (RT_FAILURE(rc))
    10771077            return rc;
    10781078        if (u32 == (uint32_t)~0)
     
    11001100        SSMR3GetMem(pSSMHandle, DevTmp.config, sizeof(DevTmp.config));
    11011101        rc = SSMR3GetS32(pSSMHandle, &DevTmp.Int.s.iIrq);
    1102         if (VBOX_FAILURE(rc))
     1102        if (RT_FAILURE(rc))
    11031103            return rc;
    11041104
     
    13891389    {
    13901390        AssertMsgFailed(("Writing to PIC failed!\n"));
    1391         return VBOX_SUCCESS(rc) ? VERR_INTERNAL_ERROR : rc;
     1391        return RT_SUCCESS(rc) ? VERR_INTERNAL_ERROR : rc;
    13921392    }
    13931393
     
    14451445    bool fUseIoApic;
    14461446    rc = CFGMR3QueryBoolDef(pCfgHandle, "IOAPIC", &fUseIoApic, false);
    1447     if (VBOX_FAILURE(rc))
     1447    if (RT_FAILURE(rc))
    14481448        return PDMDEV_SET_ERROR(pDevIns, rc,
    14491449                                N_("Configuration error: Failed to query boolean value \"IOAPIC\""));
     
    14521452    bool fGCEnabled;
    14531453    rc = CFGMR3QueryBoolDef(pCfgHandle, "GCEnabled", &fGCEnabled, true);
    1454     if (VBOX_FAILURE(rc))
     1454    if (RT_FAILURE(rc))
    14551455        return PDMDEV_SET_ERROR(pDevIns, rc,
    14561456                                N_("Configuration error: Failed to query boolean value \"GCEnabled\""));
     
    14591459    bool fR0Enabled;
    14601460    rc = CFGMR3QueryBoolDef(pCfgHandle, "R0Enabled", &fR0Enabled, true);
    1461     if (VBOX_FAILURE(rc))
     1461    if (RT_FAILURE(rc))
    14621462        return PDMDEV_SET_ERROR(pDevIns, rc,
    14631463                                N_("Configuration error: Failed to query boolean value \"R0Enabled\""));
     
    14921492    PciBusReg.pszSetIrqR0             = fR0Enabled ? "pciSetIrq" : NULL;
    14931493    rc = pDevIns->pDevHlp->pfnPCIBusRegister(pDevIns, &PciBusReg, &pBus->pPciHlpR3);
    1494     if (VBOX_FAILURE(rc))
     1494    if (RT_FAILURE(rc))
    14951495        return PDMDEV_SET_ERROR(pDevIns, rc,
    14961496                                N_("Failed to register ourselves as a PCI Bus"));
     
    15361536     */
    15371537    rc = PDMDevHlpIOPortRegister(pDevIns, 0x0cf8, 1, NULL, pciIOPortAddressWrite, pciIOPortAddressRead, NULL, NULL, "i440FX (PCI)");
    1538     if (VBOX_FAILURE(rc))
     1538    if (RT_FAILURE(rc))
    15391539        return rc;
    15401540    rc = PDMDevHlpIOPortRegister(pDevIns, 0x0cfc, 4, NULL, pciIOPortDataWrite, pciIOPortDataRead, NULL, NULL, "i440FX (PCI)");
    1541     if (VBOX_FAILURE(rc))
     1541    if (RT_FAILURE(rc))
    15421542        return rc;
    15431543    rc = PDMDevHlpSSMRegister(pDevIns, "pci", iInstance, 2, sizeof(*pBus),
    15441544                              NULL, pciSaveExec, NULL, NULL, pciLoadExec, NULL);
    1545     if (VBOX_FAILURE(rc))
     1545    if (RT_FAILURE(rc))
    15461546        return rc;
    15471547
Note: See TracChangeset for help on using the changeset viewer.

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