VirtualBox

Changeset 16224 in vbox


Ignore:
Timestamp:
Jan 26, 2009 12:58:20 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
42019
Message:

OVF: fix parsing of hardware items

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ApplianceImpl.cpp

    r16218 r16224  
    9191    string strMappingBehavior;
    9292    string strPoolID;
     93    uint32_t ulBusNumber;
    9394
    9495    uint32_t ulLineNumber;          // line number of <Item> element in XML source
     
    483484                    else if (!strcmp(pcszItemChildName, "ElementName"))
    484485                        i.strElementName = pelmItemChild->getValue();
    485                     else if (!strcmp(pcszItemChildName, "InstanceID"))
     486                    else if (    (!strcmp(pcszItemChildName, "InstanceID"))
     487                              || (!strcmp(pcszItemChildName, "InstanceId"))
     488                            )
    486489                        pelmItemChild->copyValue(i.ulInstanceID);
    487490                    else if (!strcmp(pcszItemChildName, "HostResource"))
     
    525528                    else if (!strcmp(pcszItemChildName, "PoolID"))
    526529                        i.strPoolID = pelmItemChild->getValue();
     530                    else if (!strcmp(pcszItemChildName, "BusNumber"))
     531                        pelmItemChild->copyValue(i.ulBusNumber);
    527532                    else
    528533                        return setError(VBOX_E_FILE_ERROR,
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette