- Timestamp:
- Nov 25, 2008 3:59:35 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 38 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r8155 r14579 57 57 /* Enclose the state transition NotReady->InInit->Ready */ 58 58 AutoInitSpan autoInitSpan (this); 59 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);59 AssertReturn (autoInitSpan.isOk(), E_FAIL); 60 60 61 61 unconst (mParent) = aParent; … … 88 88 /* Enclose the state transition NotReady->InInit->Ready */ 89 89 AutoInitSpan autoInitSpan (this); 90 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);90 AssertReturn (autoInitSpan.isOk(), E_FAIL); 91 91 92 92 unconst (mParent) = aParent; … … 120 120 /* Enclose the state transition NotReady->InInit->Ready */ 121 121 AutoInitSpan autoInitSpan (this); 122 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);122 AssertReturn (autoInitSpan.isOk(), E_FAIL); 123 123 124 124 unconst (mParent) = aParent; -
trunk/src/VBox/Main/BIOSSettingsImpl.cpp
r14558 r14579 55 55 /* Enclose the state transition NotReady->InInit->Ready */ 56 56 AutoInitSpan autoInitSpan (this); 57 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);57 AssertReturn (autoInitSpan.isOk(), E_FAIL); 58 58 59 59 /* share the parent weakly */ … … 85 85 /* Enclose the state transition NotReady->InInit->Ready */ 86 86 AutoInitSpan autoInitSpan (this); 87 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);87 AssertReturn (autoInitSpan.isOk(), E_FAIL); 88 88 89 89 mParent = aParent; … … 113 113 /* Enclose the state transition NotReady->InInit->Ready */ 114 114 AutoInitSpan autoInitSpan (this); 115 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);115 AssertReturn (autoInitSpan.isOk(), E_FAIL); 116 116 117 117 mParent = aParent; -
trunk/src/VBox/Main/ConsoleImpl.cpp
r14569 r14579 300 300 /* Enclose the state transition NotReady->InInit->Ready */ 301 301 AutoInitSpan autoInitSpan (this); 302 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);302 AssertReturn (autoInitSpan.isOk(), E_FAIL); 303 303 304 304 LogFlowThisFuncEnter(); -
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r13860 r14579 2037 2037 /* Enclose the state transition NotReady->InInit->Ready */ 2038 2038 AutoInitSpan autoInitSpan (this); 2039 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);2039 AssertReturn (autoInitSpan.isOk(), E_FAIL); 2040 2040 2041 2041 unconst (mParent) = aParent; -
trunk/src/VBox/Main/DVDDriveImpl.cpp
r13580 r14579 65 65 /* Enclose the state transition NotReady->InInit->Ready */ 66 66 AutoInitSpan autoInitSpan (this); 67 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);67 AssertReturn (autoInitSpan.isOk(), E_FAIL); 68 68 69 69 unconst (mParent) = aParent; … … 96 96 /* Enclose the state transition NotReady->InInit->Ready */ 97 97 AutoInitSpan autoInitSpan (this); 98 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);98 AssertReturn (autoInitSpan.isOk(), E_FAIL); 99 99 100 100 unconst (mParent) = aParent; … … 128 128 /* Enclose the state transition NotReady->InInit->Ready */ 129 129 AutoInitSpan autoInitSpan (this); 130 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);130 AssertReturn (autoInitSpan.isOk(), E_FAIL); 131 131 132 132 unconst (mParent) = aParent; -
trunk/src/VBox/Main/DisplayImpl.cpp
r13837 r14579 120 120 /* Enclose the state transition NotReady->InInit->Ready */ 121 121 AutoInitSpan autoInitSpan (this); 122 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);122 AssertReturn (autoInitSpan.isOk(), E_FAIL); 123 123 124 124 unconst (mParent) = aParent; -
trunk/src/VBox/Main/FloppyDriveImpl.cpp
r13580 r14579 65 65 /* Enclose the state transition NotReady->InInit->Ready */ 66 66 AutoInitSpan autoInitSpan (this); 67 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);67 AssertReturn (autoInitSpan.isOk(), E_FAIL); 68 68 69 69 unconst (mParent) = aParent; … … 96 96 /* Enclose the state transition NotReady->InInit->Ready */ 97 97 AutoInitSpan autoInitSpan (this); 98 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);98 AssertReturn (autoInitSpan.isOk(), E_FAIL); 99 99 100 100 unconst (mParent) = aParent; … … 128 128 /* Enclose the state transition NotReady->InInit->Ready */ 129 129 AutoInitSpan autoInitSpan (this); 130 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);130 AssertReturn (autoInitSpan.isOk(), E_FAIL); 131 131 132 132 unconst (mParent) = aParent; -
trunk/src/VBox/Main/GuestImpl.cpp
r9360 r14579 65 65 /* Enclose the state transition NotReady->InInit->Ready */ 66 66 AutoInitSpan autoInitSpan (this); 67 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);67 AssertReturn (autoInitSpan.isOk(), E_FAIL); 68 68 69 69 unconst (mParent) = aParent; -
trunk/src/VBox/Main/GuestOSTypeImpl.cpp
r14437 r14579 84 84 /* Enclose the state transition NotReady->InInit->Ready */ 85 85 AutoInitSpan autoInitSpan (this); 86 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);86 AssertReturn (autoInitSpan.isOk(), E_FAIL); 87 87 88 88 unconst (mFamilyID) = aFamilyId; -
trunk/src/VBox/Main/HardDisk2Impl.cpp
r14573 r14579 477 477 /* Enclose the state transition NotReady->InInit->Ready */ 478 478 AutoInitSpan autoInitSpan (this); 479 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);479 AssertReturn (autoInitSpan.isOk(), E_FAIL); 480 480 481 481 HRESULT rc = S_OK; … … 524 524 /* Enclose the state transition NotReady->InInit->Ready */ 525 525 AutoInitSpan autoInitSpan (this); 526 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);526 AssertReturn (autoInitSpan.isOk(), E_FAIL); 527 527 528 528 HRESULT rc = S_OK; … … 584 584 /* Enclose the state transition NotReady->InInit->Ready */ 585 585 AutoInitSpan autoInitSpan (this); 586 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);586 AssertReturn (autoInitSpan.isOk(), E_FAIL); 587 587 588 588 HRESULT rc = S_OK; -
trunk/src/VBox/Main/HardDiskAttachmentImpl.cpp
r13580 r14579 56 56 /* Enclose the state transition NotReady->InInit->Ready */ 57 57 AutoInitSpan autoInitSpan (this); 58 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);58 AssertReturn (autoInitSpan.isOk(), E_FAIL); 59 59 60 60 m.hardDisk = aHD; -
trunk/src/VBox/Main/HardDiskFormatImpl.cpp
r14561 r14579 58 58 /* Enclose the state transition NotReady->InInit->Ready */ 59 59 AutoInitSpan autoInitSpan (this); 60 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);60 AssertReturn (autoInitSpan.isOk(), E_FAIL); 61 61 62 62 /* The ID of the backend */ -
trunk/src/VBox/Main/HostDVDDriveImpl.cpp
r8155 r14579 58 58 /* Enclose the state transition NotReady->InInit->Ready */ 59 59 AutoInitSpan autoInitSpan (this); 60 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);60 AssertReturn (autoInitSpan.isOk(), E_FAIL); 61 61 62 62 unconst (mName) = aName; -
trunk/src/VBox/Main/HostFloppyDriveImpl.cpp
r8155 r14579 58 58 /* Enclose the state transition NotReady->InInit->Ready */ 59 59 AutoInitSpan autoInitSpan (this); 60 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);60 AssertReturn (autoInitSpan.isOk(), E_FAIL); 61 61 62 62 unconst (mName) = aName; -
trunk/src/VBox/Main/HostImpl.cpp
r14527 r14579 159 159 160 160 AutoWriteLock alock (this); 161 ComAssertRet (!isReady(), E_ UNEXPECTED);161 ComAssertRet (!isReady(), E_FAIL); 162 162 163 163 mParent = aParent; -
trunk/src/VBox/Main/HostNetworkInterfaceImpl.cpp
r13607 r14579 60 60 /* Enclose the state transition NotReady->InInit->Ready */ 61 61 AutoInitSpan autoInitSpan (this); 62 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);62 AssertReturn (autoInitSpan.isOk(), E_FAIL); 63 63 64 64 unconst (mInterfaceName) = aInterfaceName; -
trunk/src/VBox/Main/KeyboardImpl.cpp
r14215 r14579 91 91 /* Enclose the state transition NotReady->InInit->Ready */ 92 92 AutoInitSpan autoInitSpan (this); 93 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);93 AssertReturn (autoInitSpan.isOk(), E_FAIL); 94 94 95 95 unconst (mParent) = aParent; -
trunk/src/VBox/Main/MachineDebuggerImpl.cpp
r14107 r14579 75 75 76 76 AutoWriteLock alock (this); 77 ComAssertRet (!isReady(), E_ UNEXPECTED);77 ComAssertRet (!isReady(), E_FAIL); 78 78 79 79 mParent = parent; -
trunk/src/VBox/Main/MachineImpl.cpp
r14437 r14579 395 395 /* Enclose the state transition NotReady->InInit->Ready */ 396 396 AutoInitSpan autoInitSpan (this); 397 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);397 AssertReturn (autoInitSpan.isOk(), E_FAIL); 398 398 399 399 HRESULT rc = S_OK; … … 7689 7689 /* Enclose the state transition NotReady->InInit->Ready */ 7690 7690 AutoInitSpan autoInitSpan (this); 7691 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);7691 AssertReturn (autoInitSpan.isOk(), E_FAIL); 7692 7692 7693 7693 /* create the interprocess semaphore */ … … 10531 10531 /* Enclose the state transition NotReady->InInit->Ready */ 10532 10532 AutoInitSpan autoInitSpan (this); 10533 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);10533 AssertReturn (autoInitSpan.isOk(), E_FAIL); 10534 10534 10535 10535 AssertReturn (aSessionMachine->isWriteLockOnCurrentThread(), E_FAIL); … … 10659 10659 /* Enclose the state transition NotReady->InInit->Ready */ 10660 10660 AutoInitSpan autoInitSpan (this); 10661 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);10661 AssertReturn (autoInitSpan.isOk(), E_FAIL); 10662 10662 10663 10663 /* Don't need to lock aMachine when VirtualBox is starting up */ -
trunk/src/VBox/Main/MediumImpl.cpp
r14294 r14579 950 950 /* Enclose the state transition NotReady->InInit->Ready */ 951 951 AutoInitSpan autoInitSpan (this); 952 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);952 AssertReturn (autoInitSpan.isOk(), E_FAIL); 953 953 954 954 HRESULT rc = S_OK; … … 1003 1003 /* Enclose the state transition NotReady->InInit->Ready */ 1004 1004 AutoInitSpan autoInitSpan (this); 1005 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);1005 AssertReturn (autoInitSpan.isOk(), E_FAIL); 1006 1006 1007 1007 HRESULT rc = S_OK; -
trunk/src/VBox/Main/MouseImpl.cpp
r13837 r14579 84 84 /* Enclose the state transition NotReady->InInit->Ready */ 85 85 AutoInitSpan autoInitSpan (this); 86 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);86 AssertReturn (autoInitSpan.isOk(), E_FAIL); 87 87 88 88 unconst(mParent) = parent; -
trunk/src/VBox/Main/NetworkAdapterImpl.cpp
r10898 r14579 61 61 /* Enclose the state transition NotReady->InInit->Ready */ 62 62 AutoInitSpan autoInitSpan (this); 63 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);63 AssertReturn (autoInitSpan.isOk(), E_FAIL); 64 64 65 65 unconst (mParent) = aParent; … … 103 103 /* Enclose the state transition NotReady->InInit->Ready */ 104 104 AutoInitSpan autoInitSpan (this); 105 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);105 AssertReturn (autoInitSpan.isOk(), E_FAIL); 106 106 107 107 unconst (mParent) = aParent; … … 135 135 /* Enclose the state transition NotReady->InInit->Ready */ 136 136 AutoInitSpan autoInitSpan (this); 137 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);137 AssertReturn (autoInitSpan.isOk(), E_FAIL); 138 138 139 139 unconst (mParent) = aParent; -
trunk/src/VBox/Main/ParallelPortImpl.cpp
r13580 r14579 59 59 /* Enclose the state transition NotReady->InInit->Ready */ 60 60 AutoInitSpan autoInitSpan (this); 61 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);61 AssertReturn (autoInitSpan.isOk(), E_FAIL); 62 62 63 63 unconst (mParent) = aParent; … … 93 93 /* Enclose the state transition NotReady->InInit->Ready */ 94 94 AutoInitSpan autoInitSpan (this); 95 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);95 AssertReturn (autoInitSpan.isOk(), E_FAIL); 96 96 97 97 unconst (mParent) = aParent; … … 125 125 /* Enclose the state transition NotReady->InInit->Ready */ 126 126 AutoInitSpan autoInitSpan (this); 127 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);127 AssertReturn (autoInitSpan.isOk(), E_FAIL); 128 128 129 129 unconst (mParent) = aParent; -
trunk/src/VBox/Main/PerformanceImpl.cpp
r13082 r14579 102 102 /* Enclose the state transition NotReady->InInit->Ready */ 103 103 AutoInitSpan autoInitSpan (this); 104 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);104 AssertReturn (autoInitSpan.isOk(), E_FAIL); 105 105 106 106 LogFlowThisFuncEnter(); … … 294 294 filteredMetrics.push_back(*it); 295 295 } 296 296 297 297 com::SafeIfaceArray<IPerformanceMetric> retMetrics (filteredMetrics.size()); 298 298 int i = 0; -
trunk/src/VBox/Main/ProgressImpl.cpp
r13915 r14579 504 504 /* Enclose the state transition NotReady->InInit->Ready */ 505 505 AutoInitSpan autoInitSpan (this); 506 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);506 AssertReturn (autoInitSpan.isOk(), E_FAIL); 507 507 508 508 HRESULT rc = S_OK; … … 555 555 /* Enclose the state transition NotReady->InInit->Ready */ 556 556 AutoInitSpan autoInitSpan (this); 557 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);557 AssertReturn (autoInitSpan.isOk(), E_FAIL); 558 558 559 559 HRESULT rc = S_OK; … … 1095 1095 /* Enclose the state transition NotReady->InInit->Ready */ 1096 1096 AutoInitSpan autoInitSpan (this); 1097 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);1097 AssertReturn (autoInitSpan.isOk(), E_FAIL); 1098 1098 1099 1099 mProgresses.resize (2); -
trunk/src/VBox/Main/RemoteUSBDeviceImpl.cpp
r13659 r14579 60 60 /* Enclose the state transition NotReady->InInit->Ready */ 61 61 AutoInitSpan autoInitSpan (this); 62 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);62 AssertReturn (autoInitSpan.isOk(), E_FAIL); 63 63 64 64 unconst (mData.id).create(); -
trunk/src/VBox/Main/SATAControllerImpl.cpp
r10082 r14579 70 70 /* Enclose the state transition NotReady->InInit->Ready */ 71 71 AutoInitSpan autoInitSpan (this); 72 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);72 AssertReturn (autoInitSpan.isOk(), E_FAIL); 73 73 74 74 unconst (mParent) = aParent; … … 104 104 /* Enclose the state transition NotReady->InInit->Ready */ 105 105 AutoInitSpan autoInitSpan (this); 106 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);106 AssertReturn (autoInitSpan.isOk(), E_FAIL); 107 107 108 108 unconst (mParent) = aParent; … … 132 132 /* Enclose the state transition NotReady->InInit->Ready */ 133 133 AutoInitSpan autoInitSpan (this); 134 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);134 AssertReturn (autoInitSpan.isOk(), E_FAIL); 135 135 136 136 unconst (mParent) = aParent; -
trunk/src/VBox/Main/SerialPortImpl.cpp
r13580 r14579 59 59 /* Enclose the state transition NotReady->InInit->Ready */ 60 60 AutoInitSpan autoInitSpan (this); 61 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);61 AssertReturn (autoInitSpan.isOk(), E_FAIL); 62 62 63 63 unconst (mParent) = aParent; … … 93 93 /* Enclose the state transition NotReady->InInit->Ready */ 94 94 AutoInitSpan autoInitSpan (this); 95 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);95 AssertReturn (autoInitSpan.isOk(), E_FAIL); 96 96 97 97 unconst (mParent) = aParent; … … 125 125 /* Enclose the state transition NotReady->InInit->Ready */ 126 126 AutoInitSpan autoInitSpan (this); 127 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);127 AssertReturn (autoInitSpan.isOk(), E_FAIL); 128 128 129 129 unconst (mParent) = aParent; -
trunk/src/VBox/Main/SessionImpl.cpp
r13835 r14579 84 84 /* Enclose the state transition NotReady->InInit->Ready */ 85 85 AutoInitSpan autoInitSpan (this); 86 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);86 AssertReturn (autoInitSpan.isOk(), E_FAIL); 87 87 88 88 LogFlowThisFuncEnter(); -
trunk/src/VBox/Main/SharedFolderImpl.cpp
r13837 r14579 71 71 /* Enclose the state transition NotReady->InInit->Ready */ 72 72 AutoInitSpan autoInitSpan (this); 73 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);73 AssertReturn (autoInitSpan.isOk(), E_FAIL); 74 74 75 75 unconst (mMachine) = aMachine; … … 100 100 /* Enclose the state transition NotReady->InInit->Ready */ 101 101 AutoInitSpan autoInitSpan (this); 102 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);102 AssertReturn (autoInitSpan.isOk(), E_FAIL); 103 103 104 104 unconst (mMachine) = aMachine; … … 129 129 /* Enclose the state transition NotReady->InInit->Ready */ 130 130 AutoInitSpan autoInitSpan (this); 131 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);131 AssertReturn (autoInitSpan.isOk(), E_FAIL); 132 132 133 133 unconst (mConsole) = aConsole; … … 157 157 /* Enclose the state transition NotReady->InInit->Ready */ 158 158 AutoInitSpan autoInitSpan (this); 159 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);159 AssertReturn (autoInitSpan.isOk(), E_FAIL); 160 160 161 161 unconst (mVirtualBox) = aVirtualBox; -
trunk/src/VBox/Main/SnapshotImpl.cpp
r13580 r14579 74 74 75 75 AutoWriteLock alock (this); 76 ComAssertRet (!isReady(), E_ UNEXPECTED);76 ComAssertRet (!isReady(), E_FAIL); 77 77 78 78 mParent = aParent; -
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r14225 r14579 69 69 /* Enclose the state transition NotReady->InInit->Ready */ 70 70 AutoInitSpan autoInitSpan (this); 71 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);71 AssertReturn (autoInitSpan.isOk(), E_FAIL); 72 72 73 73 unconst (mParent) = aParent; -
trunk/src/VBox/Main/USBControllerImpl.cpp
r10535 r14579 75 75 /* Enclose the state transition NotReady->InInit->Ready */ 76 76 AutoInitSpan autoInitSpan (this); 77 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);77 AssertReturn (autoInitSpan.isOk(), E_FAIL); 78 78 79 79 unconst (mParent) = aParent; … … 112 112 /* Enclose the state transition NotReady->InInit->Ready */ 113 113 AutoInitSpan autoInitSpan (this); 114 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);114 AssertReturn (autoInitSpan.isOk(), E_FAIL); 115 115 116 116 unconst (mParent) = aParent; … … 154 154 /* Enclose the state transition NotReady->InInit->Ready */ 155 155 AutoInitSpan autoInitSpan (this); 156 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);156 AssertReturn (autoInitSpan.isOk(), E_FAIL); 157 157 158 158 unconst (mParent) = aParent; -
trunk/src/VBox/Main/USBDeviceImpl.cpp
r13659 r14579 57 57 /* Enclose the state transition NotReady->InInit->Ready */ 58 58 AutoInitSpan autoInitSpan (this); 59 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);59 AssertReturn (autoInitSpan.isOk(), E_FAIL); 60 60 61 61 HRESULT hrc = aUSBDevice->COMGETTER(VendorId)(&unconst (mData.vendorId)); -
trunk/src/VBox/Main/VirtualBoxBase.cpp
r14294 r14579 107 107 * 108 108 * This method succeeeds (and increments the number of callers) only if the 109 * current object's state is Ready. Otherwise, it will return E_ UNEXPECTED109 * current object's state is Ready. Otherwise, it will return E_ACCESSDENIED 110 110 * to indicate that the object is not operational. There are two exceptions 111 111 * from this rule: … … 141 141 * @param aLimited |true| to add a limited caller. 142 142 * 143 * @return S_OK on success or E_ UNEXPECTED on failure.143 * @return S_OK on success or E_ACCESSDENIED on failure. 144 144 * 145 145 * @note It is preferrable to use the #addLimitedCaller() rather than … … 155 155 AutoWriteLock stateLock (mStateLock); 156 156 157 HRESULT rc = E_ UNEXPECTED;157 HRESULT rc = E_ACCESSDENIED; 158 158 159 159 if (mState == Ready || (aLimited && mState == Limited)) … … 543 543 VirtualBoxBaseProto::AutoMayUninitSpan:: 544 544 AutoMayUninitSpan (VirtualBoxBaseProto *aObj) 545 : mObj (aObj), mRC (E_ UNEXPECTED), mAlreadyInProgress (false)545 : mObj (aObj), mRC (E_FAIL), mAlreadyInProgress (false) 546 546 , mAcceptUninit (false) 547 547 { -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r14437 r14579 147 147 /* Enclose the state transition NotReady->InInit->Ready */ 148 148 AutoInitSpan autoInitSpan (this); 149 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);149 AssertReturn (autoInitSpan.isOk(), E_FAIL); 150 150 151 151 LogFlow (("===========================================================\n")); -
trunk/src/VBox/Main/include/ProgressImpl.h
r13580 r14579 298 298 /* Enclose the state transition NotReady->InInit->Ready */ 299 299 AutoInitSpan autoInitSpan (this); 300 AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);300 AssertReturn (autoInitSpan.isOk(), E_FAIL); 301 301 302 302 mProgresses = ProgressVector (aFirstProgress, aLastProgress); -
trunk/src/VBox/Main/include/VirtualBoxBase.h
r13887 r14579 366 366 * 367 367 * When this object is not ready, the macro sets error info and returns 368 * E_ UNEXPECTED (the translatable error message is defined in null context).368 * E_ACCESSDENIED (the translatable error message is defined in null context). 369 369 * Otherwise, the macro does nothing. 370 370 * … … 376 376 do { \ 377 377 if (!isReady()) \ 378 return setError (E_ UNEXPECTED, tr ("The object is not ready")); \378 return setError (E_ACCESSDENIED, tr ("The object is not ready")); \ 379 379 } while (0) 380 380 … … 767 767 * { 768 768 * AutoInitSpan autoInitSpan (this); 769 * AssertReturn (autoInitSpan.isOk(), E_ UNEXPECTED);769 * AssertReturn (autoInitSpan.isOk(), E_FAIL); 770 770 * ... 771 771 * if (FAILED (rc)) … … 863 863 * { 864 864 * AutoReinitSpan autoReinitSpan (this); 865 * AssertReturn (autoReinitSpan.isOk(), E_ UNEXPECTED);865 * AssertReturn (autoReinitSpan.isOk(), E_FAIL); 866 866 * ... 867 867 * if (FAILED (rc))
Note:
See TracChangeset
for help on using the changeset viewer.