VirtualBox

Changeset 46303 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 29, 2013 8:24:40 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86057
Message:

Main/Machine: always update the property flags in Machine::setGuestPropertyToService()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r46302 r46303  
    57835783    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    57845784    Utf8Str strName(aName);
    5785     HWData::GuestPropertyMap::const_iterator it =
    5786         mHWData->mGuestProperties.find(strName);
     5785    HWData::GuestPropertyMap::const_iterator it = mHWData->mGuestProperties.find(strName);
    57875786
    57885787    if (it != mHWData->mGuestProperties.end())
     
    58755874    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    58765875    HRESULT rc = S_OK;
    5877     HWData::GuestProperty property;
    5878     property.mFlags = NILFLAG;
    58795876
    58805877    rc = checkStateDependency(MutableStateDep);
     
    58965893        if (it == mHWData->mGuestProperties.end())
    58975894        {
    5898             /* only create the new property if this is really desired */
    58995895            if (!fDelete)
    59005896            {
     
    59045900                RTTIMESPEC time;
    59055901                HWData::GuestProperty prop;
    5906                 prop.strValue = aValue;
     5902                prop.strValue   = aValue;
    59075903                prop.mTimestamp = RTTimeSpecGetNano(RTTimeNow(&time));
    5908                 prop.mFlags = fFlags;
    5909 
     5904                prop.mFlags     = fFlags;
    59105905                mHWData->mGuestProperties[Utf8Str(aName)] = prop;
    59115906            }
     
    59325927                {
    59335928                    RTTIMESPEC time;
    5934                     it->second.strValue = aValue;
     5929                    it->second.strValue   = aValue;
    59355930                    it->second.mTimestamp = RTTimeSpecGetNano(RTTimeNow(&time));
    5936                     if (aFlags != NULL)
    5937                         it->second.mFlags = fFlags;
     5931                    it->second.mFlags     = fFlags;
    59385932                }
    59395933                else
     
    1327813272            {
    1327913273                it->second.strValue   = aValue;
     13274                it->second.mTimestamp = aTimestamp;
    1328013275                it->second.mFlags     = fFlags;
    13281                 it->second.mTimestamp = aTimestamp;
    1328213276            }
    1328313277            else
    1328413278                mHWData->mGuestProperties.erase(it);
    13285            
     13279
    1328613280            mData->mGuestPropertiesModified = TRUE;
    1328713281        }
     
    1328913283        {
    1329013284            HWData::GuestProperty prop;
    13291             prop.strValue = aValue;
     13285            prop.strValue   = aValue;
    1329213286            prop.mTimestamp = aTimestamp;
    13293             prop.mFlags = fFlags;
     13287            prop.mFlags     = fFlags;
    1329413288
    1329513289            mHWData->mGuestProperties[utf8Name] = prop;
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