VirtualBox

忽略:
時間撮記:
2010-2-2 下午09:11:09 (15 年 以前)
作者:
vboxsync
訊息:

PDM: s/pCfgHandle/pCfg/g - part 2.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r26169 r26173  
    15831583 * @interface_method_impl{PDMDEVREG,pfnConstruct}
    15841584 */
    1585 static DECLCALLBACK(int) kbdConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle)
     1585static DECLCALLBACK(int) kbdConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    15861586{
    15871587    KBDState   *pThis = PDMINS_2_DATA(pDevIns, KBDState *);
     
    15961596     * Validate and read the configuration.
    15971597     */
    1598     if (!CFGMR3AreValuesValid(pCfgHandle, "GCEnabled\0R0Enabled\0"))
     1598    if (!CFGMR3AreValuesValid(pCfg, "GCEnabled\0R0Enabled\0"))
    15991599        return VERR_PDM_DEVINS_UNKNOWN_CFG_VALUES;
    1600     rc = CFGMR3QueryBoolDef(pCfgHandle, "GCEnabled", &fGCEnabled, true);
     1600    rc = CFGMR3QueryBoolDef(pCfg, "GCEnabled", &fGCEnabled, true);
    16011601    if (RT_FAILURE(rc))
    16021602        return PDMDEV_SET_ERROR(pDevIns, rc, N_("Failed to query \"GCEnabled\" from the config"));
    1603     rc = CFGMR3QueryBoolDef(pCfgHandle, "R0Enabled", &fR0Enabled, true);
     1603    rc = CFGMR3QueryBoolDef(pCfg, "R0Enabled", &fR0Enabled, true);
    16041604    if (RT_FAILURE(rc))
    16051605        return PDMDEV_SET_ERROR(pDevIns, rc, N_("Failed to query \"R0Enabled\" from the config"));
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette