vbox: fix a bug in _machineStateInactive

This function returned non-inactive domains instead of active
domains.  This broke virConnectNumOfDefinedDomains() and
virConnectListDefinedDomains() functions.
This commit is contained in:
Yohan BELLEGUIC 2014-11-19 09:53:15 +01:00 committed by Michal Privoznik
parent 22cff52a2b
commit 9b7e7e3474

View File

@ -4607,8 +4607,8 @@ static bool _machineStateOnline(PRUint32 state)
static bool _machineStateInactive(PRUint32 state)
{
return ((state > MachineState_FirstOnline) &&
(state < MachineState_LastOnline));
return ((state < MachineState_FirstOnline) ||
(state > MachineState_LastOnline));
}
static bool _machineStateNotStart(PRUint32 state)