VirtualBox

Changeset 100179 in vbox


Ignore:
Timestamp:
Jun 15, 2023 12:30:32 PM (18 months ago)
Author:
vboxsync
Message:

Main/Machine: If IMachine::discardSavedState() is called for a VM in the
'AbortedSaved' state then the machine state is correctly moved to
'Powered Off' but the saved state file isn't deleted due to a missing
check for this machine state transition in SessionMachine::i_setMachineState().
bugref:1484 bugref:10471

File:
1 edited

Legend:

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

    r99739 r100179  
    1529715297               )
    1529815298                && aMachineState   == MachineState_Restoring
    15299             )
     15299           )
    1530015300        || (   (   oldMachineState == MachineState_PoweredOff
    1530115301                || oldMachineState == MachineState_Teleported
     
    1532715327                 || oldMachineState == MachineState_TeleportingPausedVM
    1532815328                 || oldMachineState == MachineState_TeleportingIn
    15329                  )
     15329                )
    1533015330             && (   aMachineState == MachineState_PoweredOff
    1533115331                 || aMachineState == MachineState_Saved
     
    1535815358        }
    1535915359    }
    15360     else if (   oldMachineState == MachineState_Saved
     15360    else if (   (   oldMachineState == MachineState_Saved
     15361                 || oldMachineState == MachineState_AbortedSaved
     15362                )
    1536115363             && (   aMachineState == MachineState_PoweredOff
    1536215364                 || aMachineState == MachineState_Teleported
     
    1536415366            )
    1536515367    {
    15366         /* delete the saved state after SessionMachine::ForgetSavedState() is called */
     15368        /* delete the saved state after SessionMachine::discardSavedState() is called */
    1536715369        deleteSavedState = true;
    1536815370        mData->mCurrentStateModified = TRUE;
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