Changeset 93891 in vbox for trunk/src/VBox/Main
- Timestamp:
- Feb 22, 2022 6:08:39 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150110
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r93835 r93891 5320 5320 </desc> 5321 5321 </param> 5322 <param name="fWasDeleted" type="boolean" dir="in"> 5323 <desc> 5324 The flag which indicates if property was deleted. 5325 </desc> 5326 </param> 5322 5327 </method> 5323 5328 -
trunk/src/VBox/Main/include/MachineImpl.h
r93548 r93891 1234 1234 const com::Utf8Str &aValue, 1235 1235 LONG64 aTimestamp, 1236 const com::Utf8Str &aFlags); 1236 const com::Utf8Str &aFlags, 1237 BOOL fWasDeleted); 1237 1238 HRESULT lockMedia(); 1238 1239 HRESULT unlockMedia(); … … 1390 1391 const com::Utf8Str &aValue, 1391 1392 LONG64 aTimestamp, 1392 const com::Utf8Str &aFlags); 1393 const com::Utf8Str &aFlags, 1394 BOOL fWasDeleted); 1393 1395 HRESULT lockMedia(); 1394 1396 HRESULT unlockMedia(); -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r93859 r93891 1849 1849 value.raw(), 1850 1850 pCBData->u64Timestamp, 1851 flags.raw()); 1851 flags.raw(), 1852 !pCBData->pcszValue); 1852 1853 if (SUCCEEDED(hrc)) 1853 1854 { -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r93639 r93891 5655 5655 ReturnComNotImplemented(); 5656 5656 #else // VBOX_WITH_GUEST_PROPS 5657 AssertReturn(RT_SUCCESS(GuestPropValidateName(aProperty.c_str(), (uint32_t)aProperty.length() + 1 /* '\0' */)), E_INVALIDARG); 5658 AssertReturn(RT_SUCCESS(GuestPropValidateValue(aValue.c_str(), (uint32_t)aValue.length() + 1 /* '\0' */)), E_INVALIDARG); 5659 5657 5660 HRESULT rc = i_setGuestPropertyToVM(aProperty, aValue, aFlags, /* fDelete = */ false); 5658 5661 if (rc == E_ACCESSDENIED) … … 5737 5740 GuestPropWriteFlags(it->second.mFlags, szFlags); 5738 5741 aFlags[i] = Utf8Str(szFlags); 5742 5743 AssertReturn(RT_SUCCESS(GuestPropValidateName(aNames[i].c_str(), (uint32_t)aNames[i].length() + 1 /* '\0' */)), E_INVALIDARG); 5744 AssertReturn(RT_SUCCESS(GuestPropValidateValue(aValues[i].c_str(), (uint32_t)aValues[i].length() + 1 /* '\0' */)), E_INVALIDARG); 5739 5745 } 5740 5746 … … 13572 13578 else 13573 13579 aFlags[i] = ""; 13580 13581 AssertReturn(RT_SUCCESS(GuestPropValidateName(aNames[i].c_str(), (uint32_t)aNames[i].length() + 1 /* '\0' */)), E_INVALIDARG); 13582 AssertReturn(RT_SUCCESS(GuestPropValidateValue(aValues[i].c_str(), (uint32_t)aValues[i].length() + 1 /* '\0' */)), E_INVALIDARG); 13574 13583 } 13575 13584 return S_OK; … … 13582 13591 const com::Utf8Str &aValue, 13583 13592 LONG64 aTimestamp, 13584 const com::Utf8Str &aFlags) 13593 const com::Utf8Str &aFlags, 13594 BOOL fWasDeleted) 13585 13595 { 13586 13596 LogFlowThisFunc(("\n")); … … 13611 13621 mHWData.backup(); 13612 13622 13613 bool fDelete = !aValue.length();13614 13623 HWData::GuestPropertyMap::iterator it = mHWData->mGuestProperties.find(aName); 13615 13624 if (it != mHWData->mGuestProperties.end()) 13616 13625 { 13617 if (!f Delete)13626 if (!fWasDeleted) 13618 13627 { 13619 13628 it->second.strValue = aValue; … … 13626 13635 mData->mGuestPropertiesModified = TRUE; 13627 13636 } 13628 else if (!f Delete)13637 else if (!fWasDeleted) 13629 13638 { 13630 13639 HWData::GuestProperty prop; … … 15046 15055 const com::Utf8Str &aValue, 15047 15056 LONG64 aTimestamp, 15048 const com::Utf8Str &aFlags) 15057 const com::Utf8Str &aFlags, 15058 BOOL fWasDeleted) 15049 15059 { 15050 15060 NOREF(aName); … … 15052 15062 NOREF(aTimestamp); 15053 15063 NOREF(aFlags); 15064 NOREF(fWasDeleted); 15054 15065 ReturnComNotImplemented(); 15055 15066 }
Note:
See TracChangeset
for help on using the changeset viewer.