VirtualBox

Ignore:
Timestamp:
Oct 20, 2021 9:05:37 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147671
Message:

Devices/Serial: Change the serial drivers 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/Serial/DrvNamedPipe.cpp

    r82968 r91868  
    887887    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    888888    PDRVNAMEDPIPE pThis = PDMINS_2_DATA(pDrvIns, PDRVNAMEDPIPE);
     889    PCPDMDRVHLPR3 pHlp  = pDrvIns->pHlpR3;
    889890
    890891    /*
     
    924925    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "Location|IsServer", "");
    925926
    926     int rc = CFGMR3QueryStringAlloc(pCfg, "Location", &pThis->pszLocation);
     927    int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "Location", &pThis->pszLocation);
    927928    if (RT_FAILURE(rc))
    928929        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
    929930                                   N_("Configuration error: querying \"Location\" resulted in %Rrc"), rc);
    930     rc = CFGMR3QueryBool(pCfg, "IsServer", &pThis->fIsServer);
     931    rc = pHlp->pfnCFGMQueryBool(pCfg, "IsServer", &pThis->fIsServer);
    931932    if (RT_FAILURE(rc))
    932933        return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
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