VirtualBox

Changeset 39191 in vbox


Ignore:
Timestamp:
Nov 3, 2011 3:23:54 PM (13 years ago)
Author:
vboxsync
Message:

usb/win: check utf16->utf8 conversion status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp

    r39189 r39191  
    348348 *
    349349 *  */
    350             RTUtf16ToUtf8((PCRTUTF16)pDrList->StrDr.bString, lppszString);
     350            int rc = RTUtf16ToUtf8((PCRTUTF16)pDrList->StrDr.bString, lppszString);
     351            if (RT_FAILURE(rc))
     352            {
     353                AssertMsgFailed(("RTUtf16ToUtf8 failed, rc (%d), resuming\n", rc));
     354                continue;
     355            }
     356
     357            Assert(lppszString);
    351358            if (pDrList->iDr == pConInfo->DeviceDescriptor.iSerialNumber)
    352359            {
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