Changeset 94249 in vbox
- Timestamp:
- Mar 15, 2022 4:16:42 PM (3 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
-
Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestProp.cpp (modified) (1 diff)
-
Main/include/VirtualBoxImpl.h (modified) (1 diff)
-
Main/src-server/VirtualBoxImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestProp.cpp
r94184 r94249 998 998 *ppszFlags = pszFlags; 999 999 1000 /* Validate / skip 'Flags'. */1000 /* Skip 'Flags' and deal with 'fWasDeleted' if it's present. */ 1001 1001 char *pszWasDeleted = RTStrEnd(pszFlags, cbBuf - (pszFlags - (char *)pvBuf)) + 1; 1002 1002 AssertPtrReturn(pszWasDeleted, VERR_TOO_MUCH_DATA); 1003 char chWasDeleted = 0; 1004 if ( (size_t)pszWasDeleted - (size_t)pvBuf < cbBuf 1005 && (chWasDeleted = *pszWasDeleted) != '\0') 1006 AssertMsgReturn((chWasDeleted == '0' || chWasDeleted == '1') && pszWasDeleted[1] == '\0', 1007 ("'%s'\n", pszWasDeleted), VERR_PARSE_ERROR); 1003 1008 if (pfWasDeleted) 1004 { 1005 AssertReturn(pszWasDeleted[0] == '0' || pszWasDeleted[0] == '1', VERR_PARSE_ERROR); 1006 *pfWasDeleted = pszWasDeleted[0] == '0' ? false : true; 1007 } 1009 *pfWasDeleted = chWasDeleted == '1'; 1008 1010 1009 1011 /* Validate end of buffer string. */ -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r94184 r94249 176 176 177 177 void i_onGuestPropertyChanged(const Guid &aMachineId, const Utf8Str &aName, const Utf8Str &aValue, const Utf8Str &aFlags, 178 const BOOL &fWasDeleted);178 const BOOL fWasDeleted); 179 179 void i_onNatRedirectChanged(const Guid &aMachineId, ULONG ulSlot, bool fRemove, const Utf8Str &aName, 180 180 NATProtocol_T aProto, const Utf8Str &aHostIp, uint16_t aHostPort, -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r94184 r94249 3609 3609 */ 3610 3610 void VirtualBox::i_onGuestPropertyChanged(const Guid &aMachineId, const Utf8Str &aName, const Utf8Str &aValue, 3611 const Utf8Str &aFlags, const BOOL &fWasDeleted)3611 const Utf8Str &aFlags, const BOOL fWasDeleted) 3612 3612 { 3613 3613 ComPtr<IEvent> ptrEvent;
Note:
See TracChangeset
for help on using the changeset viewer.

