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
This commit is contained in:
Rom Walton 2016-06-01 22:48:44 -07:00
parent 939a9012cc
commit 3765e54e4c
1 changed files with 6 additions and 2 deletions

View File

@ -31,6 +31,9 @@
#ifndef STATUS_DLL_INIT_FAILED
#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
#include "config.h"
@ -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.