Changeset 18206 in vbox
- Timestamp:
- Mar 24, 2009 4:44:37 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 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()) -
trunk/src/VBox/Main/FloppyDriveImpl.cpp
r18194 r18206 594 594 } 595 595 } 596 597 if (!oldData->image.isNull() && 598 !oldData->image.equalsTo (m->image)) 599 { 600 /* Reattach from the old image. */ 601 HRESULT rc = oldData->image->attachTo(mParent->id(), mParent->snapshotId()); 602 AssertComRC (rc); 603 if (Global::IsOnline (adep.machineState())) 604 { 605 /* Lock from the old image. */ 606 rc = oldData->image->LockRead (NULL); 607 AssertComRC (rc); 608 } 609 } 610 596 611 } 597 612 … … 676 691 /* we need adep for the state check */ 677 692 Machine::AutoAnyStateDependency adep (mParent); 678 AssertComRCReturn (adep.rc(), false);693 AssertComRCReturn (adep.rc(), E_FAIL); 679 694 680 695 if (!m->image.isNull())
Note:
See TracChangeset
for help on using the changeset viewer.