VirtualBox

Changeset 24644 in vbox for trunk/src


Ignore:
Timestamp:
Nov 13, 2009 4:32:46 PM (15 years ago)
Author:
vboxsync
Message:

Main: autolock was done too late in SetGuestProperty

File:
1 edited

Legend:

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

    r24620 r24644  
    35183518    try
    35193519    {
     3520        AutoCaller autoCaller(this);
     3521        CheckComRCReturnRC(autoCaller.rc());
     3522
     3523        AutoWriteLock alock(this);
     3524
     3525        rc = checkStateDependency(MutableStateDep);
     3526        CheckComRCReturnRC(rc);
     3527
     3528        rc = S_OK;
     3529
    35203530        Utf8Str utf8Name(aName);
    35213531        Utf8Str utf8Flags(aFlags);
     
    35333543                            tr("Invalid flag values: '%ls'"),
    35343544                            aFlags);
    3535 
    3536         AutoCaller autoCaller(this);
    3537         CheckComRCReturnRC(autoCaller.rc());
    3538 
    3539         AutoWriteLock alock(this);
    3540 
    3541         rc = checkStateDependency(MutableStateDep);
    3542         CheckComRCReturnRC(rc);
    3543 
    3544         rc = S_OK;
    35453545
    35463546        if (!mHWData->mPropertyServiceActive)
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