VirtualBox

Changeset 91870 in vbox


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

Devices/Trace: Change the tracing 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/Trace/DrvIfsTrace.cpp

    r82789 r91870  
    9393static DECLCALLBACK(int) drvIfTrace_Construct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags)
    9494{
    95     PDRVIFTRACE   pThis   = PDMINS_2_DATA(pDrvIns, PDRVIFTRACE);
     95    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
     96    PDRVIFTRACE     pThis = PDMINS_2_DATA(pDrvIns, PDRVIFTRACE);
     97    PCPDMDRVHLPR3   pHlp  = pDrvIns->pHlpR3;
    9698
    97     PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    9899
    99100    /*
     
    111112    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "TraceFilePath|", "");
    112113
    113     int rc = CFGMR3QueryStringAlloc(pCfg, "TraceFilePath", &pThis->pszTraceFilePath);
     114    int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "TraceFilePath", &pThis->pszTraceFilePath);
    114115    AssertLogRelRCReturn(rc, rc);
    115116
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