Changeset 56910 in vbox
- Timestamp:
- Jul 10, 2015 9:02:23 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 101600
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r56391 r56910 1258 1258 } 1259 1259 else 1260 { 1261 if (fRelative) 1262 { 1263 RTMsgError("The -relative parameter is invalid for raw images"); 1264 vrc = VERR_INVALID_PARAMETER; 1265 goto out; 1266 } 1260 1267 vrc = VINF_SUCCESS; 1268 } 1261 1269 } 1262 1270 #elif defined(RT_OS_LINUX) … … 1618 1626 if (fRelative) 1619 1627 { 1620 #if defined(RT_OS_LINUX) || defined(RT_OS_ FREEBSD)1628 #if defined(RT_OS_LINUX) || defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) 1621 1629 /* Refer to the correct partition and use offset 0. */ 1622 1630 char *psz; … … 1624 1632 #if defined(RT_OS_LINUX) 1625 1633 "%s%u", 1626 #elif defined(RT_OS_ FREEBSD)1634 #elif defined(RT_OS_DARWIN) || defined(RT_OS_FREEBSD) 1627 1635 "%ss%u", 1628 1636 #endif … … 1634 1642 RTMsgError("Cannot create reference to individual partition %u, rc=%Rrc", 1635 1643 partitions.aPartitions[i].uIndex, vrc); 1636 goto out;1637 }1638 pszRawName = psz;1639 uStartOffset = 0;1640 #elif defined(RT_OS_DARWIN)1641 /* Refer to the correct partition and use offset 0. */1642 char *psz;1643 RTStrAPrintf(&psz, "%ss%u", rawdisk.c_str(),1644 partitions.aPartitions[i].uIndex);1645 if (!psz)1646 {1647 vrc = VERR_NO_STR_MEMORY;1648 RTMsgError("Cannot create reference to individual partition %u, rc=%Rrc",1649 partitions.aPartitions[i].uIndex, vrc);1650 1644 goto out; 1651 1645 }
Note:
See TracChangeset
for help on using the changeset viewer.