VirtualBox

Changeset 11091 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 4, 2008 8:44:56 AM (16 years ago)
Author:
vboxsync
Message:

Main: (guest properties) fix a burn and add an explanatory comment

File:
1 edited

Legend:

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

    r11090 r11091  
    27102710
    27112711    using namespace guestProp;
    2712     rc = E_FAIL;
     2712    HRESULT rc = E_FAIL;
    27132713
    27142714    if (!mHWData->mPropertyServiceActive)
     
    29472947
    29482948    using namespace guestProp;
    2949     rc = E_FAIL;
     2949    HRESULT rc = E_FAIL;
    29502950
    29512951    if (!mHWData->mPropertyServiceActive)
     
    89358935    AutoWriteLock alock (this);
    89368936
     8937    /* Temporarily reset the registered flag, so that our machine state
     8938     * changes (i.e. mHWData.backup()) succeed.  (isMutable() used in
     8939     * all setters will return FALSE for a Machine instance if mRegistered
     8940     * is TRUE).  This is copied from registeredInit(), and may or may not be
     8941     * the right way to handle this. */
    89378942    mData->mRegistered = FALSE;
    89388943    HRESULT rc = checkStateDependency (MutableStateDep);
     
    89628967    alock.unlock();
    89638968    SaveSettings();
     8969    /* Restore the mRegistered flag. */
    89648970    mData->mRegistered = TRUE;
    89658971    return S_OK;
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