Changeset 84732 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jun 9, 2020 7:15:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r84594 r84732 768 768 { 769 769 return VbglR3GuestCtrlSessionStartupInfoInitEx(pStartupInfo, 770 GUESTPROCESS_ MAX_USER_LEN, GUESTPROCESS_MAX_PASSWORD_LEN,771 GUESTPROCESS_ MAX_DOMAIN_LEN);770 GUESTPROCESS_DEFAULT_USER_LEN, GUESTPROCESS_DEFAULT_PASSWORD_LEN, 771 GUESTPROCESS_DEFAULT_DOMAIN_LEN); 772 772 } 773 773 … … 1118 1118 { 1119 1119 return VbglR3GuestCtrlProcStartupInfoInitEx(pStartupInfo, 1120 GUESTPROCESS_MAX_CMD_LEN, 1121 GUESTPROCESS_MAX_USER_LEN, GUESTPROCESS_MAX_PASSWORD_LEN, 1122 GUESTPROCESS_MAX_DOMAIN_LEN, 1123 GUESTPROCESS_MAX_ARGS_LEN, GUESTPROCESS_MAX_ENV_LEN); 1120 GUESTPROCESS_DEFAULT_CMD_LEN, 1121 GUESTPROCESS_DEFAULT_USER_LEN /* Deprecated, now handled via session creation. */, 1122 GUESTPROCESS_DEFAULT_PASSWORD_LEN /* Ditto. */, 1123 GUESTPROCESS_DEFAULT_DOMAIN_LEN /* Ditto. */, 1124 GUESTPROCESS_DEFAULT_ARGS_LEN, GUESTPROCESS_DEFAULT_ENV_LEN); 1124 1125 } 1125 1126 … … 1245 1246 } 1246 1247 1247 unsigned cRetries = 0; 1248 unsigned cGrowthFactor = 2; 1248 unsigned cRetries = 0; 1249 const unsigned cMaxRetries = 32; /* Should be enough for now. */ 1250 const unsigned cGrowthFactor = 2; /* By how much the buffers will grow if they're too small yet. */ 1249 1251 1250 1252 do … … 1278 1280 { 1279 1281 if ( rc == VERR_BUFFER_OVERFLOW 1280 && cRetries++ < 4)1282 && cRetries++ < cMaxRetries) 1281 1283 { 1282 1284 #define GROW_STR(a_Str, a_cbMax) \ … … 1291 1293 1292 1294 #undef GROW_STR 1293 cGrowthFactor *= cGrowthFactor;1294 1295 } 1295 1296 else
Note:
See TracChangeset
for help on using the changeset viewer.