VirtualBox

Changeset 67754 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 3, 2017 12:51:55 PM (8 years ago)
Author:
vboxsync
Message:

SystemProperties::i_getDefaultAdditionsISO: fixed my locking mess from a few days back.

File:
1 edited

Legend:

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

    r67728 r67754  
    11411141{
    11421142    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    1143     if (m->strDefaultAdditionsISO.isEmpty())
     1143    if (m->strDefaultAdditionsISO.isNotEmpty())
     1144        aDefaultAdditionsISO = m->strDefaultAdditionsISO;
     1145    else
    11441146    {
    11451147        /* no guest additions, check if it showed up in the mean time */
     
    11511153            (void)setDefaultAdditionsISO("");
    11521154        }
    1153         alock.acquire();
    1154     }
    1155     aDefaultAdditionsISO = m->strDefaultAdditionsISO;
     1155        aDefaultAdditionsISO = m->strDefaultAdditionsISO;
     1156    }
    11561157    return S_OK;
    11571158}
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