VirtualBox

Changeset 91886 in vbox for trunk


Ignore:
Timestamp:
Oct 20, 2021 12:01:58 PM (3 years ago)
Author:
vboxsync
Message:

Devices/Misc/DevVirtualKD.cpp: Access CFGM API only through the device helper callbacks, bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Misc/DevVirtualKD.cpp

    r87236 r91886  
    212212{
    213213    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    214     VIRTUALKD *pThis = PDMDEVINS_2_DATA(pDevIns, VIRTUALKD *);
     214    VIRTUALKD       *pThis = PDMDEVINS_2_DATA(pDevIns, VIRTUALKD *);
     215    PCPDMDEVHLPR3   pHlp   = pDevIns->pHlpR3;
    215216    RT_NOREF(iInstance);
    216217
     
    228229
    229230    char szPath[RTPATH_MAX];
    230     int rc = CFGMR3QueryStringDef(pCfg, "Path", szPath, sizeof(szPath) - sizeof("kdclient64.dll"), "");
     231    int rc = pHlp->pfnCFGMQueryStringDef(pCfg, "Path", szPath, sizeof(szPath) - sizeof("kdclient64.dll"), "");
    231232    if (RT_FAILURE(rc))
    232233        return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to get the \"Path\" value"));
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