Changeset 46140 in vbox
- Timestamp:
- May 17, 2013 10:12:22 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85836
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/ovfreader.cpp
r46068 r46140 746 746 { 747 747 case ResourceType_CDDrive: // 15 748 /* <Item ovf:required="false"> 749 <rasd:Caption>cdrom1</rasd:Caption> 750 <rasd:InstanceId>7</rasd:InstanceId> 751 <rasd:ResourceType>15</rasd:ResourceType> 752 <rasd:AutomaticAllocation>true</rasd:AutomaticAllocation> 753 <rasd:Parent>5</rasd:Parent> 754 <rasd:AddressOnParent>0</rasd:AddressOnParent> 755 </Item> */ 748 756 case ResourceType_HardDisk: // 17 749 757 { … … 779 787 else if (i.strHostResource.startsWith("/disk/")) 780 788 vd.strDiskId = i.strHostResource.substr(6); 781 else 782 vd.strDiskId = i.strElementName;//assign default name using value from the field 783 //<rasd:ElementName>element name</rasd:ElementName> 784 785 if ((!(vd.strDiskId.length()) 786 || (m_mapDisks.find(vd.strDiskId) == m_mapDisks.end())) 787 ) 789 790 //the error may be missed for CD, because CD can be empty 791 if ((vd.strDiskId.isEmpty() || (m_mapDisks.find(vd.strDiskId) == m_mapDisks.end())) 792 && i.resourceType == ResourceType_HardDisk) 788 793 throw OVFLogicError(N_("Error reading \"%s\": Disk item with instance ID %d specifies invalid host resource \"%s\", line %d"), 789 794 m_strPath.c_str(),
Note:
See TracChangeset
for help on using the changeset viewer.