Changeset 10814 in vbox for trunk/src/VBox/Main/ConsoleImpl.cpp
- Timestamp:
- Jul 22, 2008 1:50:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r10797 r10814 3561 3561 VBOXHGCMSVCPARM parm[3]; 3562 3562 Utf8Str Utf8Key = aKey; 3563 Utf8Str Utf8Value (MAX_VALUE_LEN );3563 Utf8Str Utf8Value (MAX_VALUE_LEN + 1); 3564 3564 3565 3565 parm[0].type = VBOX_HGCM_SVC_PARM_PTR; … … 3570 3570 parm[1].type = VBOX_HGCM_SVC_PARM_PTR; 3571 3571 parm[1].u.pointer.addr = Utf8Value.mutableRaw(); 3572 parm[1].u.pointer.size = MAX_VALUE_LEN ;3572 parm[1].u.pointer.size = MAX_VALUE_LEN + 1; 3573 3573 int vrc = mVMMDev->hgcmHostCall ("VBoxGuestPropSvc", GET_CONFIG_KEY_HOST, 3574 3574 3, &parm[0]); … … 4180 4180 { 4181 4181 using namespace guestProp; 4182 char szKeyName[MAX_NAME_LEN ];4183 char szKeyValue[MAX_VALUE_LEN ];4184 char szExtraDataName[VBOX_SHARED_INFO_PREFIX_LEN + MAX_NAME_LEN ];4185 vrc = CFGMR3GetValueName (pValue, szKeyName, MAX_NAME_LEN);4182 char szKeyName[MAX_NAME_LEN + 1]; 4183 char szKeyValue[MAX_VALUE_LEN + 1]; 4184 char szExtraDataName[VBOX_SHARED_INFO_PREFIX_LEN + MAX_NAME_LEN + 1]; 4185 vrc = CFGMR3GetValueName (pValue, szKeyName, sizeof(szKeyName)); 4186 4186 if (RT_SUCCESS(vrc)) 4187 4187 vrc = CFGMR3QueryString (pRegistry, szKeyName, szKeyValue, sizeof(szKeyValue)); … … 4224 4224 4225 4225 /* Now see if a lookup of the name in the CFGM node succeeds. */ 4226 char szKeyValue[MAX_VALUE_LEN ];4226 char szKeyValue[MAX_VALUE_LEN + 1]; 4227 4227 vrc = CFGMR3QueryString (pRegistry, pszCFGMValueName, szKeyValue, sizeof(szKeyValue)); 4228 4228 /* And delete it from the extra data if it failed. */
Note:
See TracChangeset
for help on using the changeset viewer.