VirtualBox

Changeset 91862 in vbox for trunk


Ignore:
Timestamp:
Oct 20, 2021 9:03:40 AM (3 years ago)
Author:
vboxsync
Message:

Devices/GIM: Change UDP driver to access the CFGM API through the driver helper callback table only, bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/GIMDev/DrvUDP.cpp

    r82968 r91862  
    172172{
    173173    RT_NOREF1(fFlags);
    174     PDRVUDP pThis = PDMINS_2_DATA(pDrvIns, PDRVUDP);
     174    PDRVUDP         pThis = PDMINS_2_DATA(pDrvIns, PDRVUDP);
     175    PCPDMDRVHLPR3   pHlp  = pDrvIns->pHlpR3;
     176
    175177    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    176178
     
    190192    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "ServerAddress|ServerPort", "");
    191193
    192     int rc = CFGMR3QueryStringAlloc(pCfg, "ServerAddress", &pThis->pszServerAddress);
     194    int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "ServerAddress", &pThis->pszServerAddress);
    193195    if (RT_FAILURE(rc))
    194196        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
    195197                                   N_("Configuration error: querying \"ServerAddress\" resulted in %Rrc"), rc);
    196     rc = CFGMR3QueryU16(pCfg, "ServerPort", &pThis->uServerPort);
     198    rc = pHlp->pfnCFGMQueryU16(pCfg, "ServerPort", &pThis->uServerPort);
    197199    if (RT_FAILURE(rc))
    198200        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
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