Changeset 44387 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jan 25, 2013 6:31:58 PM (12 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r44364 r44387 526 526 HRESULT removeSharedFolder(const Utf8Str &strName); 527 527 528 static DECLCALLBACK(int) configConstructor(P VM pVM, void *pvConsole);529 int configConstructorInner(P VM pVM, AutoWriteLock *pAlock);528 static DECLCALLBACK(int) configConstructor(PUVM pUVM, PVM pVM, void *pvConsole); 529 int configConstructorInner(PUVM pUVM, PVM pVM, AutoWriteLock *pAlock); 530 530 int configCfgmOverlay(PVM pVM, IVirtualBox *pVirtualBox, IMachine *pMachine); 531 531 int configDumpAPISettingsTweaks(IVirtualBox *pVirtualBox, IMachine *pMachine); -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r44364 r44387 658 658 * @note Locks the Console object for writing. 659 659 */ 660 DECLCALLBACK(int) Console::configConstructor(P VM pVM, void *pvConsole)660 DECLCALLBACK(int) Console::configConstructor(PUVM pUVM, PVM pVM, void *pvConsole) 661 661 { 662 662 LogFlowFuncEnter(); … … 675 675 * can easily reset the VM handle on failure. 676 676 */ 677 PUVM pUVM = pConsole->mpUVM = VMR3GetUVM(pVM);677 pConsole->mpUVM = pUVM; 678 678 VMR3RetainUVM(pUVM); 679 679 int vrc; 680 680 try 681 681 { 682 vrc = pConsole->configConstructorInner(p VM, &alock);682 vrc = pConsole->configConstructorInner(pUVM, pVM, &alock); 683 683 } 684 684 catch (...) … … 700 700 * 701 701 * @return VBox status code. 702 * @param pVM The VM handle. 702 * @param pUVM The user mode VM handle. 703 * @param pVM The shared VM handle. 703 704 * @param pAlock The automatic lock instance. This is for when we have 704 705 * to leave it in order to avoid deadlocks (ext packs and 705 706 * more). 706 707 */ 707 int Console::configConstructorInner(P VM pVM, AutoWriteLock *pAlock)708 int Console::configConstructorInner(PUVM pUVM, PVM pVM, AutoWriteLock *pAlock) 708 709 { 709 PUVM pUVM = VMR3GetUVM(pVM);710 710 VMMDev *pVMMDev = m_pVMMDev; Assert(pVMMDev); 711 711 ComPtr<IMachine> pMachine = machine();
Note:
See TracChangeset
for help on using the changeset viewer.