Changeset 17653 in vbox
- Timestamp:
- Mar 10, 2009 11:28:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDiskImpl.cpp
r17652 r17653 3584 3584 target->mVirtualBox->removeDependentChild (target); 3585 3585 3586 /* diffs for immutable hard disks are auto-reset by default */ 3587 target->mm.autoReset = 3588 that->root()->mm.type == HardDiskType_Immutable ? 3589 TRUE : FALSE; 3590 3586 3591 /* register with mVirtualBox as the last step and move to 3587 3592 * Created state only on success (leaving an orphan file is 3588 3593 * better than breaking media registry consistency) */ 3589 rc = that->mVirtualBox->registerHardDisk (target);3594 rc = that->mVirtualBox->registerHardDisk (target); 3590 3595 3591 3596 if (FAILED (rc)) … … 3611 3616 /* back to NotCreated on failiure */ 3612 3617 target->m.state = MediaState_NotCreated; 3618 3619 target->mm.autoReset = FALSE; 3613 3620 3614 3621 /* reset UUID to prevent it from being reused next time */
Note:
See TracChangeset
for help on using the changeset viewer.