VirtualBox

Ignore:
Timestamp:
May 20, 2010 11:29:21 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61849
Message:

strformatrt.cpp: Fixed cchPrecision and cchWidth mixup in three calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strformat.cpp

    r29660 r29683  
    352352 * @param   InArgs      Argument list.
    353353 */
    354 RTDECL(size_t) RTStrFormatV(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat, const char *pszFormat, va_list InArgs)
     354RTDECL(size_t) RTStrFormatV(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput, PFNSTRFORMAT pfnFormat, void *pvArgFormat,
     355                            const char *pszFormat, va_list InArgs)
    355356{
    356357    va_list     args;
     
    833834                        {
    834835                            pszFormat--;
    835                             cch += rtstrFormatRt(pfnOutput, pvArgOutput, &pszFormat, &args, cchPrecision, cchWidth, fFlags, chArgSize);
     836                            cch += rtstrFormatRt(pfnOutput, pvArgOutput, &pszFormat, &args, cchWidth, cchPrecision, fFlags, chArgSize);
    836837                        }
    837838                        else
    838839                        {
    839840                            pszFormat--;
    840                             cch += rtstrFormatType(pfnOutput, pvArgOutput, &pszFormat, &args, cchPrecision, cchWidth, fFlags, chArgSize);
     841                            cch += rtstrFormatType(pfnOutput, pvArgOutput, &pszFormat, &args, cchWidth, cchPrecision, fFlags, chArgSize);
    841842                        }
    842843                        break;
     
    851852                        {
    852853                            pszFormat--;
    853                             cch += pfnFormat(pvArgFormat, pfnOutput, pvArgOutput, &pszFormat, &args, cchPrecision, cchWidth, fFlags, chArgSize);
     854                            cch += pfnFormat(pvArgFormat, pfnOutput, pvArgOutput, &pszFormat, &args, cchWidth, cchPrecision, fFlags, chArgSize);
    854855                        }
    855856                        break;
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