VirtualBox

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


Ignore:
Timestamp:
Mar 8, 2010 3:55:12 PM (15 years ago)
Author:
vboxsync
Message:

Main: fix trunk regression that caused Machine::SetHWVirtExProperty to not work with VBoxManage (due to pointer voodoo in Backupable<> template, we can't take an address and then call backup())

File:
1 edited

Legend:

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

    r27166 r27172  
    17091709    {
    17101710        case HWVirtExPropertyType_Enabled:
    1711             pb = &mHWData->mHWVirtExEnabled;
     1711            setModified(IsModified_MachineData);
     1712            mHWData.backup();
     1713            mHWData->mHWVirtExEnabled = !!aVal;
    17121714            break;
    17131715
    17141716        case HWVirtExPropertyType_Exclusive:
    1715             pb = &mHWData->mHWVirtExExclusive;
     1717            setModified(IsModified_MachineData);
     1718            mHWData.backup();
     1719            mHWData->mHWVirtExExclusive = !!aVal;
    17161720            break;
    17171721
    17181722        case HWVirtExPropertyType_VPID:
    1719             pb = &mHWData->mHWVirtExVPIDEnabled;
     1723            setModified(IsModified_MachineData);
     1724            mHWData.backup();
     1725            mHWData->mHWVirtExVPIDEnabled = !!aVal;
    17201726            break;
    17211727
    17221728        case HWVirtExPropertyType_NestedPaging:
    1723             pb = &mHWData->mHWVirtExNestedPagingEnabled;
     1729            setModified(IsModified_MachineData);
     1730            mHWData.backup();
     1731            mHWData->mHWVirtExNestedPagingEnabled = !!aVal;
    17241732            break;
    17251733
     
    17321740    }
    17331741
    1734     if (*pb != !!aVal)
    1735     {
    1736         setModified(IsModified_MachineData);
    1737         mHWData.backup();
    1738         *pb = !!aVal;
    1739     }
    17401742    return S_OK;
    17411743}
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