Signed-off-by: Troy Crosley <troycrosley@gmail.com>
Reviewed-by: Owen Smith <owen.smith@citrix.com>
if (!SetSystemPowerState(FALSE, FALSE)) {
CXenAgent::Log("SetSystemPowerState failed %08x\n", GetLastError());
}
- return true;
+ return false;
} else if (type == "s3") {
m_device->StoreWrite("control/shutdown", "");
m_agent.EventLog(EVENT_XENUSER_S3);
if (!SetSuspendState(FALSE, TRUE, FALSE)) {
CXenAgent::Log("SetSuspendState failed %08x\n", GetLastError());
}
- return true;
+ return false;
}
return false;