Changeset 98289 in vbox for trunk/src/VBox/Main/src-server/MediumIOImpl.cpp
- Timestamp:
- Jan 24, 2023 4:02:15 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumIOImpl.cpp
r98262 r98289 115 115 mVirtualBoxCaller(NULL) 116 116 { 117 AssertReturnVoidStmt(pMediumIO, m RC= E_FAIL);118 AssertReturnVoidStmt(pDataStream, m RC= E_FAIL);119 m RC= mMediumCaller.hrc();120 if (FAILED(m RC))117 AssertReturnVoidStmt(pMediumIO, mHrc = E_FAIL); 118 AssertReturnVoidStmt(pDataStream, mHrc = E_FAIL); 119 mHrc = mMediumCaller.hrc(); 120 if (FAILED(mHrc)) 121 121 return; 122 122 … … 125 125 mVirtualBox = pVirtualBox; 126 126 mVirtualBoxCaller.attach(pVirtualBox); 127 m RC= mVirtualBoxCaller.hrc();128 if (FAILED(m RC))127 mHrc = mVirtualBoxCaller.hrc(); 128 if (FAILED(mHrc)) 129 129 return; 130 130 } … … 136 136 if ( isAsync() 137 137 && !mProgress.isNull()) 138 mProgress->i_notifyComplete(m RC);139 } 140 141 HRESULT hrc() const { return m RC; }138 mProgress->i_notifyComplete(mHrc); 139 } 140 141 HRESULT hrc() const { return mHrc; } 142 142 bool isOk() const { return SUCCEEDED(hrc()); } 143 143 … … 153 153 try 154 154 { 155 m RC = executeTask(); /* (destructor picks up mRC, see above) */156 LogFlowFunc(("hrc=%Rhrc\n", m RC));155 mHrc = executeTask(); /* (destructor picks up mHrc, see above) */ 156 LogFlowFunc(("hrc=%Rhrc\n", mHrc)); 157 157 } 158 158 catch (...) … … 168 168 169 169 protected: 170 HRESULT m RC;170 HRESULT mHrc; 171 171 172 172 ComObjPtr<DataStream> m_pDataStream; … … 843 843 throw rc; 844 844 } 845 catch (HRESULT aRC) { rc = aRC; }845 catch (HRESULT hrcXcpt) { rc = hrcXcpt; } 846 846 847 847 if (SUCCEEDED(rc))
Note:
See TracChangeset
for help on using the changeset viewer.