VirtualBox

Changeset 11351 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 12, 2008 12:03:41 PM (16 years ago)
Author:
vboxsync
Message:

Main: Please keep the comments aligned to the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r11296 r11351  
    37143714    VBOXHGCMSVCPARM parm[3];
    37153715
    3716 /*
    3717  * Set up the pattern parameter, translating the comma-separated list to a
    3718  * 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     */
    37203720    Utf8Str Utf8PatternsIn = aPatterns;
    37213721    if ((aPatterns != NULL) && Utf8PatternsIn.isNull())
     
    37423742    parm[0].u.pointer.size = iPatterns + 1;
    37433743
    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  */
     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     */
    37513751    size_t cchBuf = 4096;
    37523752    Utf8Str Utf8Buf;
     
    37693769        return setError (E_UNEXPECTED, tr ("Temporary failure due to guest activity, please retry"));
    37703770
    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  */
     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     */
    37753775    const char *pszBuf
    37763776        = reinterpret_cast<const char *>(parm[1].u.pointer.addr);
     
    37863786    }
    37873787
    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     */
    37913791    com::SafeArray <BSTR> names(cEntries);
    37923792    com::SafeArray <BSTR> values(cEntries);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette