Changeset 89953 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 29, 2021 1:41:06 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 145411
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r89952 r89953 10742 10742 } 10743 10743 10744 if (UuidCopy == COM_IIDOF(IDisplay)) 10745 { 10746 IDisplay *pIDisplay = pConsole->mDisplay; 10747 return pIDisplay; 10748 } 10749 10744 10750 if (UuidCopy == VMMDEV_OID) 10745 10751 return pConsole->m_pVMMDev; -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r89952 r89953 4168 4168 InsertConfigString(pLunL0, "Driver", "MainDisplay"); 4169 4169 InsertConfigNode(pLunL0, "Config", &pCfg); 4170 Display *pDisplay = mDisplay;4171 InsertConfigInteger(pCfg, "Object", (uintptr_t)pDisplay);4172 4170 } 4173 4171 catch (ConfigError &x) -
trunk/src/VBox/Main/src-client/DisplayImpl.cpp
r87904 r89953 3736 3736 * Validate configuration. 3737 3737 */ 3738 if (!CFGMR3AreValuesValid(pCfg, " Object\0"))3738 if (!CFGMR3AreValuesValid(pCfg, "")) 3739 3739 return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES; 3740 3740 AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER, … … 3791 3791 * Get the Display object pointer and update the mpDrv member. 3792 3792 */ 3793 void *pv; 3794 int rc = CFGMR3QueryPtr(pCfg, "Object", &pv); 3795 if (RT_FAILURE(rc)) 3796 { 3797 AssertMsgFailed(("Configuration error: No/bad \"Object\" value! rc=%Rrc\n", rc)); 3798 return rc; 3799 } 3800 Display *pDisplay = (Display *)pv; /** @todo Check this cast! */ 3801 pThis->pDisplay = pDisplay; 3793 com::Guid uuid(COM_IIDOF(IDisplay)); 3794 IDisplay *pIDisplay = (IDisplay *)PDMDrvHlpQueryGenericUserObject(pDrvIns, uuid.raw()); 3795 if (!pIDisplay) 3796 { 3797 AssertMsgFailed(("Configuration error: No/bad Keyboard object!\n")); 3798 return VERR_NOT_FOUND; 3799 } 3800 pThis->pDisplay = static_cast<Display *>(pIDisplay); 3802 3801 pThis->pDisplay->mpDrv = pThis; 3803 3802 … … 3811 3810 pThis->pUpPort->pfnSetRefreshRate(pThis->pUpPort, 20); 3812 3811 3813 return rc;3812 return VINF_SUCCESS; 3814 3813 } 3815 3814
Note:
See TracChangeset
for help on using the changeset viewer.