Changeset 18206 in vbox for trunk/src/VBox/Main/DVDDriveImpl.cpp
- Timestamp:
- Mar 24, 2009 4:44:37 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44927
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DVDDriveImpl.cpp
r18194 r18206 587 587 } 588 588 } 589 590 if (!oldData->image.isNull() && 591 !oldData->image.equalsTo (m->image)) 592 { 593 /* Reattach from the old image. */ 594 HRESULT rc = oldData->image->attachTo(mParent->id(), mParent->snapshotId()); 595 AssertComRC (rc); 596 if (Global::IsOnline (adep.machineState())) 597 { 598 /* Lock from the old image. */ 599 rc = oldData->image->LockRead (NULL); 600 AssertComRC (rc); 601 } 602 } 589 603 } 590 604 … … 671 685 /* we need adep for the state check */ 672 686 Machine::AutoAnyStateDependency adep (mParent); 673 AssertComRCReturn (adep.rc(), false);687 AssertComRCReturn (adep.rc(), E_FAIL); 674 688 675 689 if (!m->image.isNull())
Note:
See TracChangeset
for help on using the changeset viewer.