mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 21:47:16 +03:00
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:
parent
22cff52a2b
commit
9b7e7e3474
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user