VirtualBox

Changeset 11832 in vbox for trunk/src


Ignore:
Timestamp:
Aug 29, 2008 3:35:21 PM (16 years ago)
Author:
vboxsync
Message:

Main: call DiscardSettings() before saving guest properties in order to avoid saving any undesired temporary settings

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r11827 r11832  
    44004400    }
    44014401    if (RT_SUCCESS(vrc) || (VERR_TOO_MUCH_DATA == vrc))
     4402    {
     4403        /* PushGuestProperties() calls DiscardSettings(), which calls us back */
     4404        alock.leave();
    44024405        mControl->PushGuestProperties(ComSafeArrayAsInParam (names),
    44034406                                      ComSafeArrayAsInParam (values),
    44044407                                      ComSafeArrayAsInParam (timestamps),
    44054408                                      ComSafeArrayAsInParam (flags));
     4409        alock.enter();
     4410    }
    44064411# endif /* VBOX_WITH_GUEST_PROPS defined */
    44074412#endif /* VBOX_WITH_HGCM */
  • trunk/src/VBox/Main/MachineImpl.cpp

    r11820 r11832  
    89918991    com::SafeArray <ULONG64> timestamps(ComSafeArrayInArg(aTimestamps));
    89928992    com::SafeArray <INPTR BSTR> flags(ComSafeArrayInArg(aFlags));
     8993    DiscardSettings();
    89938994    mHWData.backup();
    89948995    mHWData->mGuestProperties.erase(mHWData->mGuestProperties.begin(),
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