VirtualBox

Changeset 13282 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Oct 15, 2008 12:42:08 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37941
Message:

Additions/common (VBoxControl and VBoxGuestLib): guest property fixes

Location:
trunk/src/VBox/Additions/common
Files:
2 edited

Legend:

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

    r12812 r13282  
    986986    else if (3 == argc)
    987987    {
    988         if (strcmp(argv[1], "-flags") != 0)
    989             usageOK = false;
    990         else
     988        if (strcmp(argv[2], "-flags") == 0)
    991989        {
    992990            VBoxControlError("You may not specify flags without a value");
    993991            return 1;
    994992        }
     993        else
     994            usageOK = false;
    995995    }
    996996    else if (4 == argc)
     
    10771077        if (RT_SUCCESS(rc))
    10781078        {
    1079             while (RT_SUCCESS(rc) && !pszName)
     1079            while (RT_SUCCESS(rc) && pszName)
    10801080            {
    10811081                RTPrintf("Name: %s, value: %s, timestamp: %lld, flags: %s\n",
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp

    r12812 r13282  
    123123        Msg.hdr.u32ClientID = u32ClientId;
    124124        Msg.hdr.u32Function = SET_PROP_VALUE;
    125         Msg.hdr.cParms = 2;
     125        Msg.hdr.cParms = 3;
    126126        VbglHGCMParmPtrSet(&Msg.name, const_cast<char *>(pszName), strlen(pszName) + 1);
    127127        VbglHGCMParmPtrSet(&Msg.value, const_cast<char *>(pszValue), strlen(pszValue) + 1);
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