VirtualBox

Ignore:
Timestamp:
Aug 13, 2008 7:38:37 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34626
Message:

RTStrFormat fix for aligned unicode strings.

File:
1 edited

Legend:

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

    r8619 r11376  
    476476                                while (--cchWidth >= cchStr)
    477477                                    cch += pfnOutput(pvArgOutput, " ", 1);
     478                            cchWidth -= cchStr;
    478479                            while (cchStr-- > 0)
    479480                            {
     
    489490#endif
    490491                            }
    491                             while (--cchWidth >= cchStr)
     492                            while (--cchWidth >= 0)
    492493                                cch += pfnOutput(pvArgOutput, " ", 1);
    493494                        }
     
    508509                                    cch += pfnOutput(pvArgOutput, " ", 1);
    509510
     511                            cchWidth -= cchStr;
    510512                            while (cchStr-- > 0)
    511513                            {
     
    519521#endif
    520522                            }
    521                             while (--cchWidth >= cchStr)
     523                            while (--cchWidth >= 0)
    522524                                cch += pfnOutput(pvArgOutput, " ", 1);
    523525                        }
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