提交 9b7e7e34 编写于 作者: Y Yohan BELLEGUIC 提交者: Michal Privoznik

vbox: fix a bug in _machineStateInactive

This function returned non-inactive domains instead of active
domains.  This broke virConnectNumOfDefinedDomains() and
virConnectListDefinedDomains() functions.
上级 22cff52a
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册