Changeset 44039 in vbox for trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
- Timestamp:
- Dec 5, 2012 12:08:52 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82492
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImplCloneVM.cpp
r42109 r44039 951 951 * with the stuff from the snapshot. */ 952 952 settings::Snapshot sn; 953 if (!d->snapshotId.isEmpty()) 953 954 if (d->snapshotId.isValid() && !d->snapshotId.isZero()) 954 955 if (!d->findSnapshot(trgMCF.llFirstSnapshot, d->snapshotId, sn)) 955 956 throw p->setError(E_FAIL, … … 960 961 if (d->mode == CloneMode_MachineState) 961 962 { 962 if ( !sn.uuid.isEmpty())963 if (sn.uuid.isValid() && !sn.uuid.isZero()) 963 964 { 964 965 trgMCF.hardwareMachine = sn.hardware; … … 971 972 } 972 973 else if ( d->mode == CloneMode_MachineAndChildStates 973 && !sn.uuid.isEmpty()) 974 && sn.uuid.isValid() 975 && !sn.uuid.isZero()) 974 976 { 975 977 if (!d->pOldMachineState.isNull()) … … 1323 1325 /* Update the path in the configuration either for the current 1324 1326 * machine state or the snapshots. */ 1325 if ( sst.snapshotUuid.isEmpty())1327 if (!sst.snapshotUuid.isValid() || sst.snapshotUuid.isZero()) 1326 1328 trgMCF.strStateFile = strTrgSaveState; 1327 1329 else
Note:
See TracChangeset
for help on using the changeset viewer.