VirtualBox

Changeset 98274 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jan 24, 2023 11:19:16 AM (2 years ago)
Author:
vboxsync
Message:

Main/PCIRawDevImpl.cpp: rc -> hrc/vrc. bugref:10223

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/PCIRawDevImpl.h

    r98103 r98274  
    5656    static DECLCALLBACK(int)    drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName,
    5757                                                           uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress,
    58                                                            int rc);
     58                                                           int vrc);
    5959
    6060    Console * const mParent;
  • trunk/src/VBox/Main/src-client/PCIRawDevImpl.cpp

    r98103 r98274  
    8686DECLCALLBACK(int) PCIRawDev::drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName,
    8787                                                        uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress,
    88                                                         int rc)
     88                                                        int vrc)
    8989{
    9090    PDRVMAINPCIRAWDEV pThis = RT_FROM_CPP_MEMBER(pInterface, DRVMAINPCIRAWDEV, IConnector);
     
    110110
    111111    Bstr msg("");
    112     if (RT_FAILURE(rc))
    113         msg = BstrFmt("runtime error %Rrc", rc);
    114 
    115     ::FireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS_NP(rc) /* success */, pda, msg.raw());
     112    if (RT_FAILURE(vrc))
     113        msg.printf("runtime error %Rrc", vrc);
     114
     115    ::FireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS_NP(vrc) /* success */, pda, msg.raw());
    116116
    117117    return VINF_SUCCESS;
     
    165165     */
    166166    void *pv;
    167     int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
    168     if (RT_FAILURE(rc))
     167    int vrc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
     168    if (RT_FAILURE(vrc))
    169169    {
    170         AssertMsgFailed(("Configuration error: No \"Object\" value! rc=%Rrc\n", rc));
    171         return rc;
     170        AssertMsgFailed(("Configuration error: No \"Object\" value! vrc=%Rrc\n", vrc));
     171        return vrc;
    172172    }
    173173
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