Changeset 7418 in vbox for trunk/src/VBox/Frontends/VBoxBFE
- Timestamp:
- Mar 10, 2008 4:01:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/VBoxBFE.cpp
r6716 r7418 1182 1182 SHFLSTRING *pFolderName, *pMapName; 1183 1183 int cbString; 1184 PRTU CS2aHostPath, aMapName;1184 PRTUTF16 aHostPath, aMapName; 1185 1185 int rc; 1186 1186 1187 rc = RTStr Utf8ToUcs2(&aHostPath, g_pszShareDir[i]);1187 rc = RTStrToUtf16(g_pszShareDir[i], &aHostPath); 1188 1188 AssertRC(rc); 1189 rc = RTStr Utf8ToUcs2(&aMapName, g_pszShareName[i]);1189 rc = RTStrToUtf16(g_pszShareName[i], &aMapName); 1190 1190 AssertRC(rc); 1191 1191 1192 cbString = (RT StrUcs2Len (aHostPath) + 1) * sizeof (RTUCS2);1192 cbString = (RTUtf16Len (aHostPath) + 1) * sizeof (RTUTF16); 1193 1193 pFolderName = (SHFLSTRING *) RTMemAllocZ (sizeof (SHFLSTRING) + cbString); 1194 1194 Assert (pFolderName); … … 1196 1196 1197 1197 pFolderName->u16Size = cbString; 1198 pFolderName->u16Length = cbString - sizeof(RTU CS2);1198 pFolderName->u16Length = cbString - sizeof(RTUTF16); 1199 1199 1200 1200 parms[0].type = VBOX_HGCM_SVC_PARM_PTR; … … 1202 1202 parms[0].u.pointer.size = sizeof (SHFLSTRING) + cbString; 1203 1203 1204 cbString = (RT StrUcs2Len (aMapName) + 1) * sizeof (RTUCS2);1204 cbString = (RTUtf16Len (aMapName) + 1) * sizeof (RTUTF16); 1205 1205 pMapName = (SHFLSTRING *) RTMemAllocZ (sizeof(SHFLSTRING) + cbString); 1206 1206 Assert (pMapName); … … 1208 1208 1209 1209 pMapName->u16Size = cbString; 1210 pMapName->u16Length = cbString - sizeof (RTU CS2);1210 pMapName->u16Length = cbString - sizeof (RTUTF16); 1211 1211 1212 1212 parms[1].type = VBOX_HGCM_SVC_PARM_PTR; … … 1223 1223 RTMemFree (pFolderName); 1224 1224 RTMemFree (pMapName); 1225 RT StrUcs2Free (aHostPath);1226 RT StrUcs2Free (aMapName);1225 RTUtf16Free (aHostPath); 1226 RTUtf16Free (aMapName); 1227 1227 } 1228 1228 }
Note:
See TracChangeset
for help on using the changeset viewer.