Changeset 91868 in vbox
- Timestamp:
- Oct 20, 2021 9:05:37 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 147671
- Location:
- trunk/src/VBox/Devices/Serial
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r86467 r91868 777 777 { 778 778 RT_NOREF1(fFlags); 779 PDRVHOSTSERIAL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTSERIAL); 779 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 780 PDRVHOSTSERIAL pThis = PDMINS_2_DATA(pDrvIns, PDRVHOSTSERIAL); 781 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 782 780 783 LogFlow(("%s: iInstance=%d\n", __FUNCTION__, pDrvIns->iInstance)); 781 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);782 784 783 785 /* … … 806 808 807 809 /* 810 * Validate the config. 811 */ 812 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "DevicePath", ""); 813 814 /* 808 815 * Query configuration. 809 816 */ 810 817 /* Device */ 811 int rc = CFGMR3QueryStringAlloc(pCfg, "DevicePath", &pThis->pszDevicePath);818 int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "DevicePath", &pThis->pszDevicePath); 812 819 if (RT_FAILURE(rc)) 813 820 { -
trunk/src/VBox/Devices/Serial/DrvNamedPipe.cpp
r82968 r91868 887 887 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 888 888 PDRVNAMEDPIPE pThis = PDMINS_2_DATA(pDrvIns, PDRVNAMEDPIPE); 889 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 889 890 890 891 /* … … 924 925 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "Location|IsServer", ""); 925 926 926 int rc = CFGMR3QueryStringAlloc(pCfg, "Location", &pThis->pszLocation);927 int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "Location", &pThis->pszLocation); 927 928 if (RT_FAILURE(rc)) 928 929 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 929 930 N_("Configuration error: querying \"Location\" resulted in %Rrc"), rc); 930 rc = CFGMR3QueryBool(pCfg, "IsServer", &pThis->fIsServer);931 rc = pHlp->pfnCFGMQueryBool(pCfg, "IsServer", &pThis->fIsServer); 931 932 if (RT_FAILURE(rc)) 932 933 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, -
trunk/src/VBox/Devices/Serial/DrvRawFile.cpp
r82968 r91868 190 190 RT_NOREF(fFlags); 191 191 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 192 PDRVRAWFILE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWFILE); 192 PDRVRAWFILE pThis = PDMINS_2_DATA(pDrvIns, PDRVRAWFILE); 193 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 193 194 194 195 /* … … 209 210 * Read the configuration. 210 211 */ 211 if (!CFGMR3AreValuesValid(pCfg, "Location\0")) 212 AssertFailedReturn(VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES); 213 214 int rc = CFGMR3QueryStringAlloc(pCfg, "Location", &pThis->pszLocation); 212 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "Location", ""); 213 214 int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "Location", &pThis->pszLocation); 215 215 if (RT_FAILURE(rc)) 216 216 AssertMsgFailedReturn(("Configuration error: query \"Location\" resulted in %Rrc.\n", rc), rc); -
trunk/src/VBox/Devices/Serial/DrvTCP.cpp
r86114 r91868 555 555 RT_NOREF(fFlags); 556 556 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 557 PDRVTCP pThis = PDMINS_2_DATA(pDrvIns, PDRVTCP); 557 PDRVTCP pThis = PDMINS_2_DATA(pDrvIns, PDRVTCP); 558 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 558 559 559 560 /* … … 589 590 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "Location|IsServer", ""); 590 591 591 int rc = CFGMR3QueryStringAlloc(pCfg, "Location", &pThis->pszLocation);592 int rc = pHlp->pfnCFGMQueryStringAlloc(pCfg, "Location", &pThis->pszLocation); 592 593 if (RT_FAILURE(rc)) 593 594 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, 594 595 N_("Configuration error: querying \"Location\" resulted in %Rrc"), rc); 595 rc = CFGMR3QueryBool(pCfg, "IsServer", &pThis->fIsServer);596 rc = pHlp->pfnCFGMQueryBool(pCfg, "IsServer", &pThis->fIsServer); 596 597 if (RT_FAILURE(rc)) 597 598 return PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS,
Note:
See TracChangeset
for help on using the changeset viewer.