VirtualBox

Changeset 35836 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Feb 3, 2011 2:55:17 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
69829
Message:

Main: do not return first item from list of registry IDs unconditionally since that list may be empty; this fixes the problem that media registry do not get saved properly if a new immutable image gets attached to a machine

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MachineImpl.h

    r35755 r35836  
    782782    HRESULT saveStateSettings(int aFlags);
    783783
     784    void addMediumToRegistry(ComObjPtr<Medium> &pMedium,
     785                             GuidList &llRegistriesThatNeedSaving,
     786                             Guid *puuid);
     787
    784788    HRESULT createImplicitDiffs(IProgress *aProgress,
    785789                                ULONG aWeight,
  • trunk/src/VBox/Main/include/MediumImpl.h

    r35638 r35836  
    177177    bool addRegistry(const Guid& id);
    178178    bool isInRegistry(const Guid& id);
    179     const Guid& getFirstRegistryMachineId() const;
     179    bool getFirstRegistryMachineId(Guid &uuid) const;
    180180    HRESULT addToRegistryIDList(GuidList &llRegistryIDs);
    181181
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette