Changeset 67334 in vbox for trunk/src/VBox/Runtime/common/fs/iso9660vfs.cpp
- Timestamp:
- Jun 12, 2017 9:48:11 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/fs/iso9660vfs.cpp
r67326 r67334 688 688 689 689 /** 690 * RTStrToUtf16Ex returning big-endian UTF-16.691 */692 static int rtFsIso9660_StrToUtf16BigEndian(const char *pszString, size_t cchString, PRTUTF16 *ppwsz, size_t cwc, size_t *pcwc)693 {694 int rc = RTStrToUtf16Ex(pszString, cchString, ppwsz, cwc, pcwc);695 #ifndef RT_BIG_ENDIAN696 if (RT_SUCCESS(rc))697 {698 PRTUTF16 pwc = *ppwsz;699 RTUTF16 wc;700 while ((wc = *pwc))701 *pwc++ = RT_H2BE_U16(wc);702 }703 #endif704 return rc;705 }706 707 708 /**709 690 * Looks up the shared structure for a child. 710 691 * … … 774 755 { 775 756 PRTUTF16 pwszEntry = uBuf.wszEntry; 776 rc = rtFsIso9660_StrToUtf16BigEndian(pszEntry, RTSTR_MAX, &pwszEntry, RT_ELEMENTS(uBuf.wszEntry), &cwcEntry);757 rc = RTStrToUtf16BigEx(pszEntry, RTSTR_MAX, &pwszEntry, RT_ELEMENTS(uBuf.wszEntry), &cwcEntry); 777 758 if (RT_FAILURE(rc)) 778 759 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.