VirtualBox

Changeset 37602 in vbox


Ignore:
Timestamp:
Jun 23, 2011 8:17:50 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72448
Message:

FE/CLI: fix default uuid of cloned VM's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r37567 r37602  
    333333    const char                    *pszTrgBaseFolder = NULL;
    334334    bool                           fRegister        = false;
    335     RTUUID                         trgUuid;
     335    Bstr                           bstrUuid;
    336336
    337337    int c;
     
    368368
    369369            case 'u':   // --uuid
     370                RTUUID trgUuid;
    370371                if (RT_FAILURE(RTUuidFromStr(&trgUuid, ValueUnion.psz)))
    371372                    return errorArgument("Invalid UUID format %s\n", ValueUnion.psz);
     373                else
     374                    bstrUuid = Guid(trgUuid).toUtf16().raw();
    372375                break;
    373376
     
    425428                                                 Bstr(pszTrgName).raw(),
    426429                                                 NULL,
    427                                                  Guid(trgUuid).toUtf16().raw(),
     430                                                 bstrUuid.raw(),
    428431                                                 FALSE,
    429432                                                 trgMachine.asOutParam()),
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