Changeset 81919 in vbox
- Timestamp:
- Nov 17, 2019 9:35:13 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134716
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevFwCommon.cpp
r77254 r81919 437 437 int FwCommonPlantDMITable(PPDMDEVINS pDevIns, uint8_t *pTable, unsigned cbMax, PCRTUUID pUuid, PCFGMNODE pCfg, uint16_t cCpus, uint16_t *pcbDmiTables, uint16_t *pcNumDmiTables) 438 438 { 439 PCPDMDEVHLPR3 pHlp = pDevIns->pHlpR3; 440 439 441 /* 440 442 * CFGM Hint! … … 471 473 else \ 472 474 { \ 473 rc = CFGMR3QueryStringDef(pCfg, name, szBuf, sizeof(szBuf), default_value); \475 rc = pHlp->pfnCFGMQueryStringDef(pCfg, name, szBuf, sizeof(szBuf), default_value); \ 474 476 if (RT_FAILURE(rc)) \ 475 477 { \ … … 508 510 else \ 509 511 { \ 510 rc = CFGMR3QueryS32Def(pCfg, # name, & variable, g_iDef ## name); \512 rc = pHlp->pfnCFGMQueryS32Def(pCfg, # name, & variable, g_iDef ## name); \ 511 513 if (RT_FAILURE(rc)) \ 512 514 { \ … … 550 552 551 553 uint8_t fDmiUseHostInfo; 552 int rc = CFGMR3QueryU8Def(pCfg, "DmiUseHostInfo", &fDmiUseHostInfo, 0);554 int rc = pHlp->pfnCFGMQueryU8Def(pCfg, "DmiUseHostInfo", &fDmiUseHostInfo, 0); 553 555 if (RT_FAILURE (rc)) 554 return PDMDEV_SET_ERROR(pDevIns, rc, 555 N_("Configuration error: Failed to read \"DmiUseHostInfo\"")); 556 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"DmiUseHostInfo\"")); 556 557 557 558 /* Sync up with host default DMI values */ … … 560 561 561 562 uint8_t fDmiExposeMemoryTable; 562 rc = CFGMR3QueryU8Def(pCfg, "DmiExposeMemoryTable", &fDmiExposeMemoryTable, 0);563 rc = pHlp->pfnCFGMQueryU8Def(pCfg, "DmiExposeMemoryTable", &fDmiExposeMemoryTable, 0); 563 564 if (RT_FAILURE (rc)) 564 return PDMDEV_SET_ERROR(pDevIns, rc, 565 N_("Configuration error: Failed to read \"DmiExposeMemoryTable\"")); 565 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"DmiExposeMemoryTable\"")); 566 566 uint8_t fDmiExposeProcessorInf; 567 rc = CFGMR3QueryU8Def(pCfg, "DmiExposeProcInf", &fDmiExposeProcessorInf, 0);567 rc = pHlp->pfnCFGMQueryU8Def(pCfg, "DmiExposeProcInf", &fDmiExposeProcessorInf, 0); 568 568 if (RT_FAILURE (rc)) 569 return PDMDEV_SET_ERROR(pDevIns, rc, 570 N_("Configuration error: Failed to read \"DmiExposeProcInf\"")); 569 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"DmiExposeProcInf\"")); 571 570 572 571 for (;; fForceDefault = true, fHideErrors = false) … … 583 582 else 584 583 { 585 rc = CFGMR3QueryString(pCfg, "DmiSystemUuid", szDmiSystemUuid, sizeof(szDmiSystemUuid));584 rc = pHlp->pfnCFGMQueryString(pCfg, "DmiSystemUuid", szDmiSystemUuid, sizeof(szDmiSystemUuid)); 586 585 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 587 586 pszDmiSystemUuid = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.