VirtualBox

Changeset 91865 in vbox for trunk/src/VBox/Devices


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

Devices/Parallel: Change host parallel port 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/Parallel/DrvHostParallel.cpp

    r82968 r91865  
    916916    RT_NOREF(fFlags);
    917917    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
     918    PDRVHOSTPARALLEL    pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
     919    PCPDMDRVHLPR3       pHlp  = pDrvIns->pHlpR3;
    918920    LogFlowFunc(("iInstance=%d\n", pDrvIns->iInstance));
    919     PDRVHOSTPARALLEL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTPARALLEL);
    920921
    921922
     
    949950     * Validate the config.
    950951     */
    951     if (!CFGMR3AreValuesValid(pCfg, "DevicePath\0"))
    952         return PDMDRV_SET_ERROR(pDrvIns, VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES,
    953                                 N_("Unknown host parallel configuration option, only supports DevicePath"));
     952    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "DevicePath", "");
    954953
    955954    /*
     
    957956     */
    958957    /* Device */
    959     int rc = CFGMR3QueryStringAlloc(pCfg, "DevicePath", &pThis->pszDevicePath);
     958    int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "DevicePath", &pThis->pszDevicePath);
    960959    if (RT_FAILURE(rc))
    961960    {
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