VirtualBox

Changeset 20852 in vbox


Ignore:
Timestamp:
Jun 23, 2009 4:21:46 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48995
Message:

Main: Don't assert when a DVD/Floppy image was unmounted at runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r20326 r20852  
    1095610956 * Locks the attached media.
    1095710957 *
    10958  * All attached hard disks and DVD/floppy are locked for writing. Parents of
    10959  * attached hard disks (if any) are locked for reading.
     10958 * All attached hard disks are locked for writing and DVD/floppy are locked for
     10959 * reading. Parents of attached hard disks (if any) are locked for reading.
    1096010960 *
    1096110961 * This method also performs accessibility check of all media it locks: if some
     
    1115511155            rc = it->first->UnlockRead (&state);
    1115611156
    11157         /* the latter can happen if an object was re-locked in
    11158          * Machine::fixupHardDisks() */
    11159         Assert (SUCCEEDED (rc) || state == MediaState_LockedRead);
     11157        /* The second can happen if an object was re-locked in
     11158         * Machine::fixupHardDisks(). The last can happen when e.g a DVD/Floppy
     11159         * image was unmounted at runtime. */
     11160        Assert (SUCCEEDED (rc) || state == MediaState_LockedRead || state == MediaState_Created);
    1116011161    }
    1116111162
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette