VirtualBox

Ignore:
Timestamp:
Mar 10, 2008 3:58:35 PM (17 years ago)
Author:
vboxsync
Message:

Fixed regression in _strlenUtf16.

File:
1 edited

Legend:

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

    r7414 r7417  
    9999    while (cchMax-- > 0)
    100100    {
    101         RTUNICP cp = RTUtf16GetCp(pwsz);
    102         Assert(cp != RTUNICP_INVALID);
    103         if (!cp || cp == RTUNICP_INVALID)
     101        RTUNICP cp;
     102        int rc = RTUtf16GetCpEx(&pwsz, &cp);
     103        AssertRC(rc);
     104        if (RT_FAILURE(rc) || !cp)
    104105            break;
    105106    }
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