Changeset 33464 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Oct 26, 2010 12:27:50 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67055
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r33294 r33464 1323 1323 /* Refer to the correct partition and use offset 0. */ 1324 1324 char *psz; 1325 vrc =RTStrAPrintf(&psz, "%s%u", rawdisk.c_str(),1326 1327 if ( RT_FAILURE(vrc))1325 RTStrAPrintf(&psz, "%s%u", rawdisk.c_str(), 1326 partitions.aPartitions[i].uIndex); 1327 if (!psz) 1328 1328 { 1329 vrc = VERR_NO_STR_MEMORY; 1329 1330 RTMsgError("Cannot create reference to individual partition %u, rc=%Rrc", 1330 partitions.aPartitions[i].uIndex, vrc);1331 partitions.aPartitions[i].uIndex, vrc); 1331 1332 goto out; 1332 1333 } … … 1336 1337 /* Refer to the correct partition and use offset 0. */ 1337 1338 char *psz; 1338 vrc =RTStrAPrintf(&psz, "%ss%u", rawdisk.c_str(),1339 1340 if ( RT_FAILURE(vrc))1339 RTStrAPrintf(&psz, "%ss%u", rawdisk.c_str(), 1340 partitions.aPartitions[i].uIndex); 1341 if (!psz) 1341 1342 { 1343 vrc = VERR_NO_STR_MEMORY; 1342 1344 RTMsgError("Cannot create reference to individual partition %u, rc=%Rrc", 1343 1345 partitions.aPartitions[i].uIndex, vrc); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r33448 r33464 37 37 #include <iprt/asm.h> 38 38 #include <iprt/dir.h> 39 #include <iprt/file.h> 39 40 #include <iprt/isofs.h> 40 41 #include <iprt/getopt.h> … … 746 747 if (RTStrAPrintf(&pszFileSource, "%s%s%s", 747 748 pszRootDir, pszSubDir ? pszSubDir : "", 748 DirEntry.szName) )749 DirEntry.szName) >= 0) 749 750 { 750 751 if (!RTStrAPrintf(&pszFileDest, "%s%s", 751 752 pszSubDir ? pszSubDir : "", 752 DirEntry.szName) )753 DirEntry.szName) >= 0) 753 754 { 754 755 rc = VERR_NO_MEMORY;
Note:
See TracChangeset
for help on using the changeset viewer.