VirtualBox

Changeset 46816 in vbox


Ignore:
Timestamp:
Jun 26, 2013 7:46:07 PM (12 years ago)
Author:
vboxsync
Message:

Main/VPX: only save the settings if the change was successful

File:
1 edited

Legend:

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

    r46734 r46816  
    17301730    mHWData->mVideoCaptureEnabled = fEnabled;
    17311731
     1732    alock.release();
     1733    rc = onVideoCaptureChange();
     1734    alock.acquire();
     1735    if (FAILED(rc)) return rc;
     1736
    17321737    /** Save settings if online - @todo why is this required? -- @bugref{6818} */
    17331738    if (Global::IsOnline(mData->mMachineState))
    17341739        saveSettings(NULL);
    1735 
    1736     alock.release();
    1737     rc = onVideoCaptureChange();
    17381740
    17391741    return rc;
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