VirtualBox

Changeset 60998 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
May 17, 2016 11:36:44 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107249
Message:

Main/xml/ovfreader.cpp: Fix OVF parsing of AHCI controller definition. Must not look at <caption>, because that tag is user defined content.

File:
1 edited

Legend:

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

    r59553 r60998  
    77
    88/*
    9  * Copyright (C) 2008-2012 Oracle Corporation
     9 * Copyright (C) 2008-2016 Oracle Corporation
    1010 *
    1111 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    662662                            <rasd:BusNumber>0</rasd:BusNumber>
    663663                        </Item> */
    664                         if (   (   i.strCaption.startsWith("sataController", RTCString::CaseInsensitive) /** @todo r=bird: 'Caption' sounds user settable so this looks plain wrong. tdAppliance1-t4.ova has an empty caption. */
    665                                 && i.strResourceSubType.compare("AHCI", RTCString::CaseInsensitive) == 0)
     664                        if (   i.strResourceSubType.compare("AHCI", RTCString::CaseInsensitive) == 0
    666665                            || i.strResourceSubType.compare("vmware.sata.ahci", RTCString::CaseInsensitive) == 0)
    667666                        {
     
    674673                        }
    675674                        else
    676                             throw OVFLogicError(N_("Error reading \"%s\": Host resource of type \"Other Storage Device (%d)\" is supported with SATA AHCI controllers only, line %d (caption:%s; subtype:%s)"),
     675                            throw OVFLogicError(N_("Error reading \"%s\": Host resource of type \"Other Storage Device (%d)\" is supported with SATA AHCI controllers only, line %d (subtype:%s)"),
    677676                                                m_strPath.c_str(),
    678677                                                ResourceType_OtherStorageDevice,
    679                                                 i.ulLineNumber, i.strCaption.c_str(), i.strResourceSubType.c_str() );
     678                                                i.ulLineNumber, i.strResourceSubType.c_str() );
    680679                        break;
    681680                    }
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