VirtualBox

Changeset 16233 in vbox


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

OVF: more lenient parsing of IDE disk correlation

File:
1 edited

Legend:

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

    r16231 r16233  
    693693                        // 12345678901234
    694694                        if (i.strHostResource.substr(0, 11) == "ovf://disk/")
    695                         {
    696695                            vd.strDiskId = i.strHostResource.substr(11);
    697                             if (m->mapDisks.find(vd.strDiskId) != m->mapDisks.end())
    698                                 fFound = true;
    699                         }
    700 
    701                         if (!fFound)
     696                        else if (i.strHostResource.substr(0, 6) == "/disk/")
     697                            vd.strDiskId = i.strHostResource.substr(6);
     698
     699                        if (    !(vd.strDiskId.length())
     700                             || (m->mapDisks.find(vd.strDiskId) == m->mapDisks.end())
     701                           )
    702702                            return setError(VBOX_E_FILE_ERROR,
    703703                                            tr("Error reading \"%s\": Hard disk item with instance ID %d specifies invalid host resource \"%s\", line %d"),
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