Changeset 91863 in vbox
- Timestamp:
- Oct 20, 2021 9:04:02 AM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DrvKeyboardQueue.cpp
r90241 r91863 468 468 static DECLCALLBACK(int) drvKbdQueueConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 469 469 { 470 PDRVKBDQUEUE pDrv = PDMINS_2_DATA(pDrvIns, PDRVKBDQUEUE); 470 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 471 PDRVKBDQUEUE pDrv = PDMINS_2_DATA(pDrvIns, PDRVKBDQUEUE); 472 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 473 471 474 LogFlow(("drvKbdQueueConstruct: iInstance=%d\n", pDrvIns->iInstance)); 472 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 475 473 476 474 477 /* 475 478 * Validate configuration. 476 479 */ 477 if (!CFGMR3AreValuesValid(pCfg, "QueueSize\0Interval\0")) 478 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 480 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "QueueSize|Interval", ""); 479 481 480 482 /* … … 526 528 */ 527 529 uint32_t cMilliesInterval = 0; 528 rc = CFGMR3QueryU32(pCfg, "Interval", &cMilliesInterval);530 rc = pHlp->pfnCFGMQueryU32(pCfg, "Interval", &cMilliesInterval); 529 531 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 530 532 cMilliesInterval = 0; … … 536 538 537 539 uint32_t cItems = 0; 538 rc = CFGMR3QueryU32(pCfg, "QueueSize", &cItems);540 rc = pHlp->pfnCFGMQueryU32(pCfg, "QueueSize", &cItems); 539 541 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 540 542 cItems = 128; -
trunk/src/VBox/Devices/Input/DrvMouseQueue.cpp
r89832 r91863 328 328 static DECLCALLBACK(int) drvMouseQueueConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags) 329 329 { 330 PDRVMOUSEQUEUE pDrv = PDMINS_2_DATA(pDrvIns, PDRVMOUSEQUEUE); 330 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns); 331 PDRVMOUSEQUEUE pDrv = PDMINS_2_DATA(pDrvIns, PDRVMOUSEQUEUE); 332 PCPDMDRVHLPR3 pHlp = pDrvIns->pHlpR3; 333 331 334 LogFlow(("drvMouseQueueConstruct: iInstance=%d\n", pDrvIns->iInstance)); 332 PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);333 335 334 336 /* 335 337 * Validate configuration. 336 338 */ 337 if (!CFGMR3AreValuesValid(pCfg, "QueueSize\0Interval\0")) 338 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 339 PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "QueueSize|Interval", ""); 339 340 340 341 /* … … 383 384 */ 384 385 uint32_t cMilliesInterval = 0; 385 rc = CFGMR3QueryU32(pCfg, "Interval", &cMilliesInterval);386 rc = pHlp->pfnCFGMQueryU32(pCfg, "Interval", &cMilliesInterval); 386 387 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 387 388 cMilliesInterval = 0; … … 393 394 394 395 uint32_t cItems = 0; 395 rc = CFGMR3QueryU32(pCfg, "QueueSize", &cItems);396 rc = pHlp->pfnCFGMQueryU32(pCfg, "QueueSize", &cItems); 396 397 if (rc == VERR_CFGM_VALUE_NOT_FOUND) 397 398 cItems = 128;
Note:
See TracChangeset
for help on using the changeset viewer.