VirtualBox

Changeset 93377 in vbox for trunk


Ignore:
Timestamp:
Jan 20, 2022 6:35:17 PM (3 years ago)
Author:
vboxsync
Message:

Main/UnattendedImpl: ​​​bugref:10182. Returning string for VBOXOSTYPE_Unknown rather than empty string in case detection fails.

File:
1 edited

Legend:

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

    r93365 r93377  
    392392    if (hrc == S_FALSE && enmOsType == VBOXOSTYPE_Unknown)
    393393        hrc = i_innerDetectIsoOSOs2(hVfsIso, &uBuf, &enmOsType);
    394     if (enmOsType != VBOXOSTYPE_Unknown)
    395     {
    396         try {  mStrDetectedOSTypeId = Global::OSTypeId(enmOsType); }
    397         catch (std::bad_alloc &) { hrc = E_OUTOFMEMORY; }
    398     }
     394    try {  mStrDetectedOSTypeId = Global::OSTypeId(enmOsType); }
     395    catch (std::bad_alloc &) { hrc = E_OUTOFMEMORY; }
    399396    return hrc;
    400397}
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