Changeset 91881 in vbox
- Timestamp:
- Oct 20, 2021 11:37:30 AM (3 years ago)
- Location:
- trunk/src/VBox/Devices/Input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/UsbKbd.cpp
r90700 r91881 1759 1759 RT_NOREF1(pCfgGlobal); 1760 1760 PDMUSB_CHECK_VERSIONS_RETURN(pUsbIns); 1761 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 1761 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 1762 PCPDMUSBHLP pHlp = pUsbIns->pHlpR3; 1762 1763 Log(("usbHidConstruct/#%u:\n", iInstance)); 1763 1764 … … 1781 1782 * Validate and read the configuration. 1782 1783 */ 1783 rc = CFGMR3ValidateConfig(pCfg, "/", "Mode", "Config", "UsbHid", iInstance);1784 rc = pHlp->pfnCFGMValidateConfig(pCfg, "/", "Mode", "Config", "UsbHid", iInstance); 1784 1785 if (RT_FAILURE(rc)) 1785 1786 return rc; 1786 1787 char szMode[64]; 1787 rc = CFGMR3QueryStringDef(pCfg, "Mode", szMode, sizeof(szMode), "basic");1788 rc = pHlp->pfnCFGMQueryStringDef(pCfg, "Mode", szMode, sizeof(szMode), "basic"); 1788 1789 if (RT_FAILURE(rc)) 1789 1790 return PDMUsbHlpVMSetError(pUsbIns, rc, RT_SRC_POS, N_("HID failed to query settings")); -
trunk/src/VBox/Devices/Input/UsbMouse.cpp
r90993 r91881 2358 2358 RT_NOREF1(pCfgGlobal); 2359 2359 PDMUSB_CHECK_VERSIONS_RETURN(pUsbIns); 2360 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 2360 PUSBHID pThis = PDMINS_2_DATA(pUsbIns, PUSBHID); 2361 PCPDMUSBHLP pHlp = pUsbIns->pHlpR3; 2362 2361 2363 LogRelFlow(("usbHidConstruct/#%u:\n", iInstance)); 2362 2364 … … 2379 2381 * Validate and read the configuration. 2380 2382 */ 2381 rc = CFGMR3ValidateConfig(pCfg, "/", "Mode|CoordShift", "Config", "UsbHid", iInstance);2383 rc = pHlp->pfnCFGMValidateConfig(pCfg, "/", "Mode|CoordShift", "Config", "UsbHid", iInstance); 2382 2384 if (RT_FAILURE(rc)) 2383 2385 return rc; 2384 2386 char szMode[64]; 2385 rc = CFGMR3QueryStringDef(pCfg, "Mode", szMode, sizeof(szMode), "relative");2387 rc = pHlp->pfnCFGMQueryStringDef(pCfg, "Mode", szMode, sizeof(szMode), "relative"); 2386 2388 if (RT_FAILURE(rc)) 2387 2389 return PDMUsbHlpVMSetError(pUsbIns, rc, RT_SRC_POS, N_("HID failed to query settings")); … … 2414 2416 return PDMUsbHlpVMSetError(pUsbIns, VERR_PDM_MISSING_INTERFACE, RT_SRC_POS, N_("HID failed to query mouse interface")); 2415 2417 2416 rc = CFGMR3QueryU8Def(pCfg, "CoordShift", &pThis->u8CoordShift, 1);2418 rc = pHlp->pfnCFGMQueryU8Def(pCfg, "CoordShift", &pThis->u8CoordShift, 1); 2417 2419 if (RT_FAILURE(rc)) 2418 2420 return PDMUsbHlpVMSetError(pUsbIns, rc, RT_SRC_POS, N_("HID failed to query shift factor"));
Note:
See TracChangeset
for help on using the changeset viewer.