Changeset 95228 in vbox for trunk/include/VBox/HostServices
- Timestamp:
- Jun 8, 2022 1:07:45 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/GuestPropertySvc.h
r93891 r95228 41 41 #define GUEST_PROP_MAX_NAME_LEN 64 42 42 /** Maximum length for property values. */ 43 #define GUEST_PROP_MAX_VALUE_LEN 1 2843 #define GUEST_PROP_MAX_VALUE_LEN 1024 44 44 /** Maximum number of properties per guest. */ 45 45 #define GUEST_PROP_MAX_PROPS 256 … … 93 93 * 94 94 * @returns IPRT status code 95 * @retval VINF_SUCCESS if guest property value corresponds to all criteria. 96 * @retval VERR_TOO_MUCH_DATA if guest property value size exceeds limits. 97 * @retval VERR_INVALID_PARAMETER if guest property does not correspond to all other criteria. 95 98 * @param pszValue the string to check, must be valid Utf8 96 99 * @param cbValue the length in bytes of @a pszValue, including the … … 104 107 /* Zero-length values are possible, however buffer should contain terminating character at least. */ 105 108 AssertReturn(cbValue > 0, VERR_INVALID_PARAMETER); 106 AssertReturn(cbValue < GUEST_PROP_MAX_VALUE_LEN, VERR_ INVALID_PARAMETER);109 AssertReturn(cbValue < GUEST_PROP_MAX_VALUE_LEN, VERR_TOO_MUCH_DATA); 107 110 108 111 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.