[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH 2/2] Suppress warning (28159)
From: Owen Smith <owen.smith@xxxxxxxxxx> Setting "control/shutdown" to "poweroff" or "reboot" is intended to trigger a shutdown/reboot! Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx> --- src/xenagent/service.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xenagent/service.cpp b/src/xenagent/service.cpp index e2a6c03..46250e8 100644 --- a/src/xenagent/service.cpp +++ b/src/xenagent/service.cpp @@ -194,6 +194,7 @@ bool CXenIfaceCreator::CheckShutdown() m_device->StoreWrite("control/shutdown", ""); AcquireShutdownPrivilege(); +#pragma warning(suppress:28159) /* Consider using a design alternative... Rearchitect to avoid Reboot */ if (!InitiateSystemShutdownEx(NULL, NULL, 0, TRUE, FALSE, SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_ENVIRONMENT | @@ -206,6 +207,7 @@ bool CXenIfaceCreator::CheckShutdown() m_device->StoreWrite("control/shutdown", ""); AcquireShutdownPrivilege(); +#pragma warning(suppress:28159) /* Consider using a design alternative... Rearchitect to avoid Reboot */ if (!InitiateSystemShutdownEx(NULL, NULL, 0, TRUE, TRUE, SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_ENVIRONMENT | -- 2.8.3 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |