VirtualBox

Ignore:
Timestamp:
Mar 24, 2010 2:45:55 PM (15 years ago)
Author:
vboxsync
Message:

VBoxManage, Main: fixed creating VM, Bstr fixes.

File:
1 edited

Legend:

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

    r26517 r27668  
    238238        return errorSyntax(USAGE_CREATEVM, "Parameter --name is required");
    239239
    240     if (!!baseFolder && !!settingsFile)
    241         return errorSyntax(USAGE_CREATEVM, "Either --basefolder or --settingsfile must be specified");
     240    if (!baseFolder.isEmpty() && !settingsFile.isEmpty())
     241        return errorSyntax(USAGE_CREATEVM, "Cannot specify both --basefolder and --settingsfile together");
    242242
    243243    do
     
    245245        ComPtr<IMachine> machine;
    246246
    247         if (!settingsFile)
     247        if (settingsFile.isEmpty())
    248248            CHECK_ERROR_BREAK(a->virtualBox,
    249249                CreateMachine(name, osTypeId, baseFolder, Guid(id).toUtf16(), machine.asOutParam()));
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