Changeset 38041 in vbox for trunk/src/VBox
- Timestamp:
- Jul 18, 2011 9:01:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r38038 r38041 642 642 if (pLMedium.isNull()) 643 643 throw E_POINTER; 644 if (pLMedium->isReadOnly()) 644 ComObjPtr<Medium> pBase = pLMedium->getBase(); 645 if (pBase->isReadOnly()) 645 646 { 646 647 ComObjPtr<Medium> pDiff; … … 799 800 if (mtc.fCreateDiffs) 800 801 { 801 if (pNewParent->isReadOnly()) 802 const MEDIUMTASK &mt = mtc.chain.first(); 803 ComPtr<IMedium> pMedium = mt.pMedium; 804 IMedium *pTmp = pMedium; 805 ComObjPtr<Medium> pLMedium = static_cast<Medium*>(pTmp); 806 if (pLMedium.isNull()) 807 throw E_POINTER; 808 ComObjPtr<Medium> pBase = pLMedium->getBase(); 809 if (pBase->isReadOnly()) 802 810 { 803 811 ComObjPtr<Medium> pDiff;
Note:
See TracChangeset
for help on using the changeset viewer.