VirtualBox

Changeset 54791 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Mar 16, 2015 4:04:03 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98985
Message:

Main/Machine: fix long-standing bug with setting extradata (it isn't allowed to use an immutable IMachine instance, see corresponding VBoxManage fix), and while at it fix a long-standing bug which allowed changing most settings at runtime (the i_checkStateDependency logic was broken)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r53927 r54791  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    804804        if (machine)
    805805        {
     806            /* open an existing session for the VM */
     807            CHECK_ERROR_RET(machine, LockMachine(a->session, LockType_Shared), 1);
     808            /* get the session machine */
     809            CHECK_ERROR_RET(a->session, COMGETTER(Machine)(machine.asOutParam()), 1);
    806810            /** @todo passing NULL is deprecated */
    807811            if (a->argc < 3)
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