VirtualBox

Changeset 7418 in vbox for trunk/src/VBox/Frontends/VBoxBFE


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

UCS-2 -> UTF-16.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp

    r6716 r7418  
    11821182            SHFLSTRING      *pFolderName, *pMapName;
    11831183            int              cbString;
    1184             PRTUCS2          aHostPath, aMapName;
     1184            PRTUTF16         aHostPath, aMapName;
    11851185            int              rc;
    11861186
    1187             rc = RTStrUtf8ToUcs2(&aHostPath, g_pszShareDir[i]);
     1187            rc = RTStrToUtf16(g_pszShareDir[i], &aHostPath);
    11881188            AssertRC(rc);
    1189             rc = RTStrUtf8ToUcs2(&aMapName, g_pszShareName[i]);
     1189            rc = RTStrToUtf16(g_pszShareName[i], &aMapName);
    11901190            AssertRC(rc);
    11911191
    1192             cbString = (RTStrUcs2Len (aHostPath) + 1) * sizeof (RTUCS2);
     1192            cbString = (RTUtf16Len (aHostPath) + 1) * sizeof (RTUTF16);
    11931193            pFolderName = (SHFLSTRING *) RTMemAllocZ (sizeof (SHFLSTRING) + cbString);
    11941194            Assert (pFolderName);
     
    11961196
    11971197            pFolderName->u16Size   = cbString;
    1198             pFolderName->u16Length = cbString - sizeof(RTUCS2);
     1198            pFolderName->u16Length = cbString - sizeof(RTUTF16);
    11991199
    12001200            parms[0].type = VBOX_HGCM_SVC_PARM_PTR;
     
    12021202            parms[0].u.pointer.size = sizeof (SHFLSTRING) + cbString;
    12031203
    1204             cbString = (RTStrUcs2Len (aMapName) + 1) * sizeof (RTUCS2);
     1204            cbString = (RTUtf16Len (aMapName) + 1) * sizeof (RTUTF16);
    12051205            pMapName = (SHFLSTRING *) RTMemAllocZ (sizeof(SHFLSTRING) + cbString);
    12061206            Assert (pMapName);
     
    12081208
    12091209            pMapName->u16Size   = cbString;
    1210             pMapName->u16Length = cbString - sizeof (RTUCS2);
     1210            pMapName->u16Length = cbString - sizeof (RTUTF16);
    12111211
    12121212            parms[1].type = VBOX_HGCM_SVC_PARM_PTR;
     
    12231223            RTMemFree (pFolderName);
    12241224            RTMemFree (pMapName);
    1225             RTStrUcs2Free (aHostPath);
    1226             RTStrUcs2Free (aMapName);
     1225            RTUtf16Free (aHostPath);
     1226            RTUtf16Free (aMapName);
    12271227        }
    12281228    }
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