Changeset 22277 in vbox for trunk/src/VBox/Main/DisplayImpl.cpp
- Timestamp:
- Aug 16, 2009 9:12:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DisplayImpl.cpp
r22215 r22277 2427 2427 * Construct a display driver instance. 2428 2428 * 2429 * @returns VBox status. 2430 * @param pDrvIns The driver instance data. 2431 * If the registration structure is needed, pDrvIns->pDrvReg points to it. 2432 * @param pCfgHandle Configuration node handle for the driver. Use this to obtain the configuration 2433 * of the driver instance. It's also found in pDrvIns->pCfgHandle, but like 2434 * iInstance it's expected to be used a bit in this function. 2435 */ 2436 DECLCALLBACK(int) Display::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle) 2429 * @copydoc FNPDMDRVCONSTRUCT 2430 */ 2431 DECLCALLBACK(int) Display::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags) 2437 2432 { 2438 2433 PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY); … … 2444 2439 if (!CFGMR3AreValuesValid(pCfgHandle, "Object\0")) 2445 2440 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 2446 PPDMIBASE pBaseIgnore; 2447 int rc = pDrvIns->pDrvHlp->pfnAttach(pDrvIns, &pBaseIgnore); 2448 if (rc != VERR_PDM_NO_ATTACHED_DRIVER) 2449 { 2450 AssertMsgFailed(("Configuration error: Not possible to attach anything to this driver!\n")); 2451 return VERR_PDM_DRVINS_NO_ATTACH; 2452 } 2441 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, 2442 ("Configuration error: Not possible to attach anything to this driver!\n"), 2443 VERR_PDM_DRVINS_NO_ATTACH); 2453 2444 2454 2445 /* … … 2489 2480 */ 2490 2481 void *pv; 2491 rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);2482 int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv); 2492 2483 if (RT_FAILURE(rc)) 2493 2484 { … … 2545 2536 /* pfnResume */ 2546 2537 NULL, 2538 /* pfnAttach */ 2539 NULL, 2547 2540 /* pfnDetach */ 2548 NULL 2541 NULL, 2542 /* pfnPowerOff */ 2543 NULL, 2544 /* pfnSoftReset */ 2545 NULL, 2546 /* u32EndVersion */ 2547 PDM_DRVREG_VERSION 2549 2548 }; 2550 2549 /* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note:
See TracChangeset
for help on using the changeset viewer.