Changeset 11351 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 12, 2008 12:03:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r11296 r11351 3714 3714 VBOXHGCMSVCPARM parm[3]; 3715 3715 3716 /*3717 * Set up the pattern parameter, translating the comma-separated list to a3718 * double-terminated zero-separated one.3719 */3716 /* 3717 * Set up the pattern parameter, translating the comma-separated list to a 3718 * double-terminated zero-separated one. 3719 */ 3720 3720 Utf8Str Utf8PatternsIn = aPatterns; 3721 3721 if ((aPatterns != NULL) && Utf8PatternsIn.isNull()) … … 3742 3742 parm[0].u.pointer.size = iPatterns + 1; 3743 3743 3744 /*3745 * Now things get slightly complicated. Due to a race with the guest adding3746 * properties, there is no good way to know how much large a buffer to provide3747 * the service to enumerate into. We choose a decent starting size and loop a3748 * few times, each time retrying with the size suggested by the service plus3749 * one Kb.3750 */3744 /* 3745 * Now things get slightly complicated. Due to a race with the guest adding 3746 * properties, there is no good way to know how much large a buffer to provide 3747 * the service to enumerate into. We choose a decent starting size and loop a 3748 * few times, each time retrying with the size suggested by the service plus 3749 * one Kb. 3750 */ 3751 3751 size_t cchBuf = 4096; 3752 3752 Utf8Str Utf8Buf; … … 3769 3769 return setError (E_UNEXPECTED, tr ("Temporary failure due to guest activity, please retry")); 3770 3770 3771 /*3772 * Finally we have to unpack the data returned by the service into the safe3773 * arrays supplied by the caller. We start by counting the number of entries.3774 */3771 /* 3772 * Finally we have to unpack the data returned by the service into the safe 3773 * arrays supplied by the caller. We start by counting the number of entries. 3774 */ 3775 3775 const char *pszBuf 3776 3776 = reinterpret_cast<const char *>(parm[1].u.pointer.addr); … … 3786 3786 } 3787 3787 3788 /*3789 * And now we create the COM safe arrays and fill them in.3790 */3788 /* 3789 * And now we create the COM safe arrays and fill them in. 3790 */ 3791 3791 com::SafeArray <BSTR> names(cEntries); 3792 3792 com::SafeArray <BSTR> values(cEntries);
Note:
See TracChangeset
for help on using the changeset viewer.