VirtualBox

Changeset 18531 in vbox


Ignore:
Timestamp:
Mar 30, 2009 11:59:54 AM (15 years ago)
Author:
vboxsync
Message:

OVF: test case insensitive

File:
1 edited

Legend:

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

    r18530 r18531  
    368368static void convertCIMOSType2VBoxOSType(Utf8Str &strType, CIMOSType_T c, const Utf8Str &cStr)
    369369{
    370     /* First */
     370    /* First check if the type is other/other_64 */
    371371    if (c == CIMOSType_CIMOS_Other)
    372372    {
    373373        for (size_t i=0; i < RT_ELEMENTS(g_osTypesPattern); ++i)
    374             if (cStr.contains (g_osTypesPattern[i].pcszPattern))
     374            if (cStr.contains (g_osTypesPattern[i].pcszPattern, Utf8Str::CaseInsensitive))
    375375            {
    376376                strType = g_osTypesPattern[i].pcszVbox;
     
    381381    {
    382382        for (size_t i=0; i < RT_ELEMENTS(g_osTypesPattern64); ++i)
    383             if (cStr.contains (g_osTypesPattern64[i].pcszPattern))
     383            if (cStr.contains (g_osTypesPattern64[i].pcszPattern, Utf8Str::CaseInsensitive))
    384384            {
    385385                strType = g_osTypesPattern64[i].pcszVbox;
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