VirtualBox

Changeset 24253 in vbox for trunk/src


Ignore:
Timestamp:
Nov 2, 2009 1:38:21 PM (15 years ago)
Author:
vboxsync
Message:

Main/MediumImpl: fix overly paranoid assert

File:
1 edited

Legend:

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

    r24230 r24253  
    35683568    AutoWriteLock alock(this);
    35693569
    3570     AssertReturn(m->state == MediumState_Created ||
    3571                  m->state == MediumState_Inaccessible ||
    3572                  m->state == MediumState_LockedRead,
    3573                  E_FAIL);
     3570    if (   m->state != MediumState_Created
     3571        && m->state != MediumState_Inaccessible
     3572        && m->state != MediumState_LockedRead)
     3573        return E_FAIL;
    35743574
    35753575    HRESULT rc = S_OK;
Note: See TracChangeset for help on using the changeset viewer.

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