VirtualBox

Changeset 96234 in vbox


Ignore:
Timestamp:
Aug 16, 2022 8:08:29 PM (2 years ago)
Author:
vboxsync
Message:

IPRT/stream.cpp: Assert if UTF-8 to UTF-16/current-cp fails during console output, just silently failing isn't good and it's questionable whether we should actually block the stream here as it's an input failure we weed out before it hits the actual output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/stream.cpp

    r96089 r96234  
    19791979        size_t   cwcSrc = 0;
    19801980        rc = RTStrToUtf16Ex((const char *)pvBuf, cbToWrite, &pwszSrc, 0, &cwcSrc);
     1981        AssertRC(rc);
    19811982        if (RT_SUCCESS(rc))
    19821983        {
     
    22292230            char *pszSrcCurCP;
    22302231            rc = RTStrUtf8ToCurrentCP(&pszSrcCurCP, pszSrc);
     2232            AssertRC(rc);
    22312233            if (RT_SUCCESS(rc))
    22322234            {
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