VirtualBox

Changeset 29876 in vbox for trunk/src


Ignore:
Timestamp:
May 28, 2010 7:17:22 PM (15 years ago)
Author:
vboxsync
Message:

OVF: fix broken OVF 0.9 import

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/ovfreader.cpp

    r29422 r29876  
    8686        const char *pcszTypeAttr = "";
    8787        const xml::AttributeNode *pTypeAttr;
    88         if ((pTypeAttr = pElem->findAttribute("type")))
     88        if (    ((pTypeAttr = pElem->findAttribute("xsi:type")))
     89             || ((pTypeAttr = pElem->findAttribute("type")))
     90           )
    8991            pcszTypeAttr = pTypeAttr->getValue();
    9092
     
    9799            HandleDiskSection(pReferencesElem, pElem);
    98100        }
    99        else if (    (!strcmp(pcszElemName, "NetworkSection"))
     101        else if (    (!strcmp(pcszElemName, "NetworkSection"))
    100102                  || (    (!strcmp(pcszElemName, "Section"))
    101103                       && (!strcmp(pcszTypeAttr, "ovf:NetworkSection_Type"))
Note: See TracChangeset for help on using the changeset viewer.

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