VirtualBox

Ignore:
Timestamp:
Dec 5, 2012 12:08:52 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82492
Message:

Main: renavation com::Guid class. PR5744

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp

    r42109 r44039  
    951951         * with the stuff from the snapshot. */
    952952        settings::Snapshot sn;
    953         if (!d->snapshotId.isEmpty())
     953
     954        if (d->snapshotId.isValid() && !d->snapshotId.isZero())
    954955            if (!d->findSnapshot(trgMCF.llFirstSnapshot, d->snapshotId, sn))
    955956                throw p->setError(E_FAIL,
     
    960961        if (d->mode == CloneMode_MachineState)
    961962        {
    962             if (!sn.uuid.isEmpty())
     963            if (sn.uuid.isValid() && !sn.uuid.isZero())
    963964            {
    964965                trgMCF.hardwareMachine = sn.hardware;
     
    971972        }
    972973        else if (   d->mode == CloneMode_MachineAndChildStates
    973                  && !sn.uuid.isEmpty())
     974                    && sn.uuid.isValid()
     975                    && !sn.uuid.isZero())
    974976        {
    975977            if (!d->pOldMachineState.isNull())
     
    13231325            /* Update the path in the configuration either for the current
    13241326             * machine state or the snapshots. */
    1325             if (sst.snapshotUuid.isEmpty())
     1327            if (!sst.snapshotUuid.isValid() || sst.snapshotUuid.isZero())
    13261328                trgMCF.strStateFile = strTrgSaveState;
    13271329            else
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