VirtualBox

Ignore:
Timestamp:
Mar 28, 2012 11:12:00 AM (13 years ago)
Author:
vboxsync
Message:

VBoxManage: fixed error code if 'controlvm savestate' failed

File:
1 edited

Legend:

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

    r38525 r40673  
    182182                    MachineState_T machineState;
    183183                    CHECK_ERROR_BREAK(console, COMGETTER(State)(&machineState));
     184                    /* the error code was lost by the previous instruction */
     185                    rc = VBOX_E_INVALID_VM_STATE;
    184186                    if (machineState != MachineState_Paused)
    185187                    {
    186188                        RTMsgError("Machine in invalid state %d -- %s\n",
    187189                                   machineState, machineStateToName(machineState, false));
    188                         break;
    189                     }
    190                 }
     190                    }
     191                }
     192                break;
    191193            }
    192194
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