VirtualBox

Changeset 35011 in vbox


Ignore:
Timestamp:
Dec 13, 2010 1:51:42 PM (14 years ago)
Author:
vboxsync
Message:

Main: less code duplication

File:
1 edited

Legend:

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

    r34587 r35011  
    26152615                {
    26162616                    AutoReadLock mlock(it->mpSource COMMA_LOCKVAL_SRC_POS);
    2617                     const ComObjPtr<MediumFormat> &sourceFormat = it->mpSource->getMediumFormat();
    2618                     // No medium format description? get out of here.
    2619                     if (sourceFormat.isNull())
    2620                         throw rc;
    2621                     // Diff medium not backed by a file - cannot get status so
    2622                     // be pessimistic.
    2623                     if (!(sourceFormat->getCapabilities() & MediumFormatCapabilities_File))
     2617                    if (!it->mpSource->isMediumFormatFile())
     2618                        // Diff medium not backed by a file - cannot get status so
     2619                        // be pessimistic.
    26242620                        throw rc;
    26252621                    const Utf8Str &loc = it->mpSource->getLocationFull();
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