Changeset 46303 in vbox for trunk/src/VBox
- Timestamp:
- May 29, 2013 8:24:40 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 86057
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r46302 r46303 5783 5783 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 5784 5784 Utf8Str strName(aName); 5785 HWData::GuestPropertyMap::const_iterator it = 5786 mHWData->mGuestProperties.find(strName); 5785 HWData::GuestPropertyMap::const_iterator it = mHWData->mGuestProperties.find(strName); 5787 5786 5788 5787 if (it != mHWData->mGuestProperties.end()) … … 5875 5874 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 5876 5875 HRESULT rc = S_OK; 5877 HWData::GuestProperty property;5878 property.mFlags = NILFLAG;5879 5876 5880 5877 rc = checkStateDependency(MutableStateDep); … … 5896 5893 if (it == mHWData->mGuestProperties.end()) 5897 5894 { 5898 /* only create the new property if this is really desired */5899 5895 if (!fDelete) 5900 5896 { … … 5904 5900 RTTIMESPEC time; 5905 5901 HWData::GuestProperty prop; 5906 prop.strValue = aValue;5902 prop.strValue = aValue; 5907 5903 prop.mTimestamp = RTTimeSpecGetNano(RTTimeNow(&time)); 5908 prop.mFlags = fFlags; 5909 5904 prop.mFlags = fFlags; 5910 5905 mHWData->mGuestProperties[Utf8Str(aName)] = prop; 5911 5906 } … … 5932 5927 { 5933 5928 RTTIMESPEC time; 5934 it->second.strValue = aValue;5929 it->second.strValue = aValue; 5935 5930 it->second.mTimestamp = RTTimeSpecGetNano(RTTimeNow(&time)); 5936 if (aFlags != NULL) 5937 it->second.mFlags = fFlags; 5931 it->second.mFlags = fFlags; 5938 5932 } 5939 5933 else … … 13278 13272 { 13279 13273 it->second.strValue = aValue; 13274 it->second.mTimestamp = aTimestamp; 13280 13275 it->second.mFlags = fFlags; 13281 it->second.mTimestamp = aTimestamp;13282 13276 } 13283 13277 else 13284 13278 mHWData->mGuestProperties.erase(it); 13285 13279 13286 13280 mData->mGuestPropertiesModified = TRUE; 13287 13281 } … … 13289 13283 { 13290 13284 HWData::GuestProperty prop; 13291 prop.strValue = aValue;13285 prop.strValue = aValue; 13292 13286 prop.mTimestamp = aTimestamp; 13293 prop.mFlags = fFlags;13287 prop.mFlags = fFlags; 13294 13288 13295 13289 mHWData->mGuestProperties[utf8Name] = prop;
Note:
See TracChangeset
for help on using the changeset viewer.