VirtualBox

Changeset 68240 in vbox for trunk


Ignore:
Timestamp:
Aug 2, 2017 12:42:18 PM (7 years ago)
Author:
vboxsync
Message:

Unattended: Added detectedOSLanguages and language attributes to deal with the windows installer's stupid UILanguage requirement. The specified language must be supported by the installation media, probably by way of lang.ini, which means we need to implement UDF support to really get this right. For now, looking for language specifier in the ISO name (ASSUMES filename unchanged since MSDN download). [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/UnattendedImpl.cpp

    r68239 r68240  
    246246        && (pszFilename[2] == '-' || pszFilename[2] == '_') )
    247247    {
    248         szTmp[0] = RT_C_TO_LOWER(pszFilename[0]);
    249         szTmp[1] = RT_C_TO_LOWER(pszFilename[1]);
     248        szTmp[0] = (char)RT_C_TO_LOWER(pszFilename[0]);
     249        szTmp[1] = (char)RT_C_TO_LOWER(pszFilename[1]);
    250250        szTmp[2] = '-';
    251251        if (szTmp[0] == 'e' && szTmp[1] == 'n')
     
    285285        else
    286286        {
    287             szTmp[3] = RT_C_TO_UPPER(pszFilename[0]);
    288             szTmp[4] = RT_C_TO_UPPER(pszFilename[1]);
     287            szTmp[3] = (char)RT_C_TO_UPPER(pszFilename[0]);
     288            szTmp[4] = (char)RT_C_TO_UPPER(pszFilename[1]);
    289289            szTmp[5] = '\0';
    290290        }
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