VirtualBox

Changeset 43904 in vbox


Ignore:
Timestamp:
Nov 16, 2012 6:37:14 PM (12 years ago)
Author:
vboxsync
Message:

Main/ovfreader: Small addendum for the prefix == NULL case

File:
1 edited

Legend:

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

    r43903 r43904  
    467467                    else if (!strcmp(pcszItemChildName, "BusNumber"))       // seen in some old OVF, but it's not listed in the OVF specs
    468468                        pelmItemChild->copyValue(i.ulBusNumber);
    469                     else if (strcmp(pelmItemChild->getPrefix(), "vmw"))
     469                    else if (   pelmItemChild->getPrefix() == NULL
     470                             || strcmp(pelmItemChild->getPrefix(), "vmw"))
    470471                        throw OVFLogicError(N_("Error reading \"%s\": unknown element \"%s\" under Item element, line %d"),
    471472                                            m_strPath.c_str(),
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