From 3765e54e4c0028562a17e0e31758d195dbcfabe7 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 1 Jun 2016 22:48:44 -0700 Subject: [PATCH] client: Check for a new process initialization error code when the user session is being logged off. Microsoft decided to add a new status code for Win10. See: https://github.com/BOINC/boinc/issues/1553 --- client/app_control.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/app_control.cpp b/client/app_control.cpp index 7458863a39..973fc70dff 100644 --- a/client/app_control.cpp +++ b/client/app_control.cpp @@ -26,10 +26,13 @@ #define snprintf _snprintf #endif #ifndef STATUS_SUCCESS -#define STATUS_SUCCESS 0x0 // may be in ntstatus.h +#define STATUS_SUCCESS 0x0 // may be in ntstatus.h #endif #ifndef STATUS_DLL_INIT_FAILED -#define STATUS_DLL_INIT_FAILED 0xC0000142 // may be in ntstatus.h +#define STATUS_DLL_INIT_FAILED 0xC0000142 // may be in ntstatus.h +#endif +#ifndef STATUS_DLL_INIT_FAILED_LOGOFF +#define STATUS_DLL_INIT_FAILED_LOGOFF 0xC000026B // may be in ntstatus.h #endif #else @@ -476,6 +479,7 @@ void ACTIVE_TASK::handle_exited_app(int stat) { case 0xc000013a: // control-C?? case 0x40010004: // vista shutdown?? can someone explain this? case STATUS_DLL_INIT_FAILED: + case STATUS_DLL_INIT_FAILED_LOGOFF: // This can happen because: // - The OS is shutting down, and attempting to start // any new application fails automatically.