VirtualBox

Changeset 52554 in vbox for trunk/src


Ignore:
Timestamp:
Sep 1, 2014 4:00:05 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95815
Message:

VBox/Main: #1909: Bug & coding style fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/glue/string.cpp

    r52546 r52554  
    179179 * @param   a_pbstr         The source string.  The caller guarantees that this
    180180 *                          is valid UTF-16.
    181  * @param   a_cbSize        The number of characters to be copied. If set to RTSTR_MAX,
     181 * @param   a_cwcMax        The number of characters to be copied. If set to RTSTR_MAX,
    182182 *                          the entire string will be copied.
    183183 *
    184184 * @sa      RTCString::copyFromN
    185185 */
    186 void Utf8Str::copyFrom(CBSTR a_pbstr, size_t a_cchSize)
     186void Utf8Str::copyFrom(CBSTR a_pbstr, size_t a_cwcMax)
    187187{
    188188    if (a_pbstr && *a_pbstr)
    189189    {
    190190        int vrc = RTUtf16ToUtf8Ex((PCRTUTF16)a_pbstr,
    191                                   a_cchSize,        // size_t cwcString: translate entire string
     191                                  a_cwcMax,        // size_t cwcString: translate entire string
    192192                                  &m_psz,           // char **ppsz: output buffer
    193193                                  0,                // size_t cch: if 0, func allocates buffer in *ppsz
Note: See TracChangeset for help on using the changeset viewer.

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