diff options
author | Karlson2k <k2k@narod.ru> | 2014-12-08 14:41:15 +0300 |
---|---|---|
committer | Karlson2k <k2k@narod.ru> | 2014-12-08 14:41:15 +0300 |
commit | 53dda6033d775eab45094e3f7c503dad8543d46b (patch) | |
tree | 953533d6306c2f053ba7cbfd73b411a9f0439c4c | |
parent | 1a3f0694b186a6aeaeb4890d8c17ed33b3a1a679 (diff) |
[win32] WIN32Util::PowerManagement: fix restart on Win8.1
-rw-r--r-- | xbmc/win32/WIN32Util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/win32/WIN32Util.cpp b/xbmc/win32/WIN32Util.cpp index dcba5ad870..9697fc784c 100644 --- a/xbmc/win32/WIN32Util.cpp +++ b/xbmc/win32/WIN32Util.cpp @@ -240,7 +240,7 @@ bool CWIN32Util::PowerManagement(PowerState State) case POWERSTATE_REBOOT: CLog::Log(LOGINFO, "Rebooting Windows..."); if (g_sysinfo.IsWindowsVersionAtLeast(CSysInfo::WindowsVersionWin8)) - return InitiateShutdownW(NULL, NULL, 0, SHUTDOWN_HYBRID | SHUTDOWN_INSTALL_UPDATES | SHUTDOWN_RESTART, + return InitiateShutdownW(NULL, NULL, 0, SHUTDOWN_INSTALL_UPDATES | SHUTDOWN_RESTART, SHTDN_REASON_MAJOR_APPLICATION | SHTDN_REASON_MINOR_OTHER | SHTDN_REASON_FLAG_PLANNED) == ERROR_SUCCESS; return InitiateShutdownW(NULL, NULL, 0, SHUTDOWN_INSTALL_UPDATES | SHUTDOWN_RESTART, SHTDN_REASON_MAJOR_APPLICATION | SHTDN_REASON_MINOR_OTHER | SHTDN_REASON_FLAG_PLANNED) == ERROR_SUCCESS; |