VirtualBox

Changeset 3421 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 4, 2007 4:06:12 PM (18 years ago)
Author:
vboxsync
Message:

Main: Fixed an assertion when closing the direct machine session after changing machine controller properties but w/o saving them.

File:
1 edited

Legend:

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

    r3302 r3421  
    445445 *  Loads settings from the configuration node.
    446446 *
    447  *  @note Locks objects for reading!
     447 *  @note Locks objects for writing!
    448448 */
    449449HRESULT USBController::loadSettings (CFGNODE aMachine)
    450450{
    451     ComAssertRet (aMachine, E_FAIL);
    452 
    453     AutoCaller autoCaller (this);
    454     CheckComRCReturnRC (autoCaller.rc());
     451    AssertReturn (aMachine, E_FAIL);
     452
     453    AutoCaller autoCaller (this);
     454    AssertComRCReturnRC (autoCaller.rc());
    455455
    456456    AutoLock alock (this);
     
    525525HRESULT USBController::saveSettings (CFGNODE aMachine)
    526526{
    527     ComAssertRet (aMachine, E_FAIL);
     527    AssertReturn (aMachine, E_FAIL);
    528528
    529529    AutoCaller autoCaller (this);
     
    681681
    682682    /* we need the machine state */
    683     Machine::AutoMutableStateDependency adep (mParent);
     683    Machine::AutoAnyStateDependency adep (mParent);
    684684    AssertComRCReturn (adep.rc(), false);
    685685
     
    954954#else
    955955    /* we need the machine state */
    956     Machine::AutoMutableStateDependency adep (mParent);
     956    Machine::AutoAnyStateDependency adep (mParent);
    957957    AssertComRCReturnRC (adep.rc());
    958958
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