VirtualBox

Changeset 19108 in vbox


Ignore:
Timestamp:
Apr 22, 2009 11:29:25 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46275
Message:

Main: fix discarding snapshots when the corresponding disk images aren't fully initialized yet (#3829)

File:
1 edited

Legend:

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

    r19036 r19108  
    282282        }
    283283
     284        /* We have to fetch the state with the COM method, cause it's possible
     285           that the hard disk isn't fully initialized yet. See HRESULT
     286           ImageMediumBase::protectedInit (VirtualBox *aVirtualBox, const
     287           settings::Key &aImageNode) for an explanation why. */
     288        MediaState_T m;
     289        rc = aHardDisk->COMGETTER(State)(&m);
     290        CheckComRCReturnRC (rc);
    284291        /* go to Deleting */
    285         switch (aHardDisk->m.state)
     292        switch (m)
    286293        {
    287294            case MediaState_Created:
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