VirtualBox

Changeset 94090 in vbox


Ignore:
Timestamp:
Mar 4, 2022 3:48:31 PM (3 years ago)
Author:
vboxsync
Message:

Main/Machine: Do not allow TRANSIENT and TRANSRESET guest properties to be set if VM is not running, bugref:10185.

File:
1 edited

Legend:

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

    r94084 r94090  
    55525552        if (aFlags.length() && RT_FAILURE(GuestPropValidateFlags(aFlags.c_str(), &fFlags)))
    55535553            return setError(E_INVALIDARG, tr("Invalid guest property flag values: '%s'"), aFlags.c_str());
     5554
     5555        if (fFlags & (GUEST_PROP_F_TRANSIENT | GUEST_PROP_F_TRANSRESET))
     5556            return setError(E_INVALIDARG, tr("Properties with TRANSIENT or TRANSRESET flag cannot be set or modified if VM is not running"));
    55545557
    55555558        HWData::GuestPropertyMap::iterator it = mHWData->mGuestProperties.find(aName);
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