- Timestamp:
- Jan 28, 2013 2:16:06 PM (12 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r44421 r44425 414 414 public: 415 415 416 /* *416 /* 417 417 * Helper class that safely manages the Console::mpUVM pointer 418 418 * by calling addVMCaller() on construction and releaseVMCaller() on 419 419 * destruction. Intended for Console children. The usage pattern is: 420 420 * <code> 421 * Console::SaveVMPtr pVM(mParent); 422 * if (FAILED(pVM.rc())) return pVM.rc(); 421 * Console::SaveVMPtr ptrVM(mParent); 422 * if (!ptrVM.isOk()) 423 * return ptrVM.rc(); 423 424 * ... 424 * VMR3ReqCall(p VM, ...425 * VMR3ReqCall(ptrVM.rawUVM(), ... 425 426 * ... 426 * printf("%p\n", p VM.raw());427 * printf("%p\n", ptrVM.rawUVM()); 427 428 * </code> 428 429 * -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r44419 r44425 10 10 11 11 /* 12 * Copyright (C) 2006-201 2Oracle Corporation12 * Copyright (C) 2006-2013 Oracle Corporation 13 13 * 14 14 * This file is part of VirtualBox Open Source Edition (OSE), as … … 648 648 * is done here. 649 649 * 650 * @param pVM VM handle. 650 * @param pUVM The user mode VM handle. 651 * @param pVM The cross context VM handle. 651 652 * @param pvConsole Pointer to the VMPowerUpTask object. 652 653 * @return VBox status code. … … 697 698 * @return VBox status code. 698 699 * @param pUVM The user mode VM handle. 699 * @param pVM The sharedVM handle.700 * @param pVM The cross context VM handle. 700 701 * @param pAlock The automatic lock instance. This is for when we have 701 702 * to leave it in order to avoid deadlocks (ext packs and … … 783 784 * This is the only node in the tree. 784 785 */ 785 PCFGMNODE pRoot = CFGMR3GetRoot (pVM);786 PCFGMNODE pRoot = CFGMR3GetRootU(pUVM); 786 787 Assert(pRoot); 787 788 … … 1450 1451 default: 1451 1452 AssertMsgFailed(("Invalid bootDevice=%d\n", bootDevice)); 1452 return VM SetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS,1453 N_("Invalid boot device '%d'"), bootDevice);1453 return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, 1454 N_("Invalid boot device '%d'"), bootDevice); 1454 1455 } 1455 1456 InsertConfigString(pBiosCfg, szParamName, pszBootDevice); … … 1854 1855 AssertMsgFailed(("Invalid network adapter type '%d' for slot '%d'", 1855 1856 adapterType, ulInstance)); 1856 return VM SetError(pVM, VERR_INVALID_PARAMETER, RT_SRC_POS,1857 N_("Invalid network adapter type '%d' for slot '%d'"),1858 adapterType, ulInstance);1857 return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, 1858 N_("Invalid network adapter type '%d' for slot '%d'"), 1859 adapterType, ulInstance); 1859 1860 } 1860 1861 … … 2355 2356 /* Always fatal! Up to VBox 4.0.4 we allowed to start the VM anyway 2356 2357 * but this induced problems when the user saved + restored the VM! */ 2357 return VM SetError(pVM, VERR_NOT_FOUND, RT_SRC_POS,2358 return VMR3SetError(pUVM, VERR_NOT_FOUND, RT_SRC_POS, 2358 2359 N_("Implementation of the USB 2.0 controller not found!\n" 2359 2360 "Because the USB 2.0 controller state is part of the saved " … … 2608 2609 BOOL fSupports3D = VBoxOglIs3DAccelerationSupported(); 2609 2610 if (!fSupports3D) 2610 return VM SetError(pVM, VERR_NOT_AVAILABLE, RT_SRC_POS,2611 return VMR3SetError(pUVM, VERR_NOT_AVAILABLE, RT_SRC_POS, 2611 2612 N_("This VM was configured to use 3D acceleration. However, the " 2612 2613 "3D support of the host is not working properly and the " … … 2856 2857 * 2857 2858 * @returns VBox status code. 2858 * @param p VM The VM handle.2859 * @param pRoot The root of the configuration tree. 2859 2860 * @param pVirtualBox Pointer to the IVirtualBox interface. 2860 2861 * @param pMachine Pointer to the IMachine interface.
Note:
See TracChangeset
for help on using the changeset viewer.