VirtualBox

Ignore:
Timestamp:
Oct 15, 2008 4:21:04 PM (16 years ago)
Author:
vboxsync
Message:

FE/VBoxManage: clean up an error handler

File:
1 edited

Legend:

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

    r11113 r13294  
    121121    }
    122122    else if (4 == argc)
    123     {
    124         if (strcmp(argv[2], "-flags") != 0)
    125             usageOK = false;
    126         else
    127             return errorSyntax(USAGE_GUESTPROPERTY,
    128                                "You may not specify flags without a value");
    129     }
     123        usageOK = false;
    130124    else if (5 == argc)
    131125    {
     
    166160        else if (NULL == pszFlags)
    167161            CHECK_ERROR(machine, SetGuestPropertyValue(Bstr(pszName), Bstr(pszValue)));
    168         else if (NULL == pszValue)
    169             CHECK_ERROR(machine, SetGuestProperty(Bstr(pszName), NULL, Bstr(pszFlags)));
    170162        else
    171163            CHECK_ERROR(machine, SetGuestProperty(Bstr(pszName), Bstr(pszValue), Bstr(pszFlags)));
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