VirtualBox

Changeset 11104 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 4, 2008 2:29:30 PM (16 years ago)
Author:
vboxsync
Message:

Additions/common: handle guestproperty set with no value correctly in VBoxControl too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp

    r10985 r11104  
    975975    if (2 == argc)
    976976    {
    977         pszName = argv[0];
    978977        pszValue = argv[1];
    979978    }
    980979    else if (3 == argc)
    981980    {
    982         pszName = argv[0];
    983981        if (strcmp(argv[1], "-flags") != 0)
    984982            usageOK = false;
     
    987985    else if (4 == argc)
    988986    {
    989         pszName = argv[0];
    990987        pszValue = argv[1];
    991988        if (strcmp(argv[2], "-flags") != 0)
     
    1000997        return 1;
    1001998    }
     999    /* This is always needed. */
     1000    pszName = argv[0];
    10021001
    10031002/*
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