VirtualBox

Changeset 91866 in vbox for trunk


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

Devices/Samples: Change the storage filter 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/Samples/DrvStorageFilter.cpp

    r82968 r91866  
    434434static DECLCALLBACK(int) drvStorageFlt_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    435435{
    436     PDRVSTORAGEFILTER   pThis   = PDMINS_2_DATA(pDrvIns, PDRVSTORAGEFILTER);
    437 
    438436    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
     437    PDRVSTORAGEFILTER   pThis = PDMINS_2_DATA(pDrvIns, PDRVSTORAGEFILTER);
     438    PCPDMDRVHLPR3       pHlp  = pDrvIns->pHlpR3;
    439439
    440440    /*
     
    488488    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "AsyncIOSupported|", "");
    489489
    490     int rc = CFGMR3QueryBoolDef(pCfg, "AsyncIOSupported", &pThis->fAsyncIOSupported, true);
     490    int rc = pHlp->pfnCFGMQueryBoolDef(pCfg, "AsyncIOSupported", &pThis->fAsyncIOSupported, true);
    491491    AssertLogRelRCReturn(rc, rc);
    492492
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