VirtualBox

Changeset 11097 in vbox for trunk


Ignore:
Timestamp:
Aug 4, 2008 12:18:13 PM (16 years ago)
Author:
vboxsync
Message:

FE/VBoxManage: handle guestproperty set with no value correctly

File:
1 edited

Legend:

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

    r11088 r11097  
    117117    if (3 == argc)
    118118    {
    119         pszName = argv[1];
    120119        pszValue = argv[2];
    121120    }
    122121    else if (4 == argc)
    123122    {
    124         pszName = argv[1];
    125123        if (strcmp(argv[2], "-flags") != 0)
    126124            usageOK = false;
     
    129127    else if (5 == argc)
    130128    {
    131         pszName = argv[1];
    132129        pszValue = argv[2];
    133130        if (strcmp(argv[3], "-flags") != 0)
     
    139136    if (!usageOK)
    140137        return errorSyntax(USAGE_GUESTPROPERTY, "Incorrect parameters");
     138    /* This is always needed. */
     139    pszName = argv[1];
    141140
    142141    ComPtr<IMachine> machine;
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