mirror of https://github.com/BOINC/boinc.git
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:
parent
939a9012cc
commit
3765e54e4c
|
@ -26,10 +26,13 @@
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
#endif
|
#endif
|
||||||
#ifndef STATUS_SUCCESS
|
#ifndef STATUS_SUCCESS
|
||||||
#define STATUS_SUCCESS 0x0 // may be in ntstatus.h
|
#define STATUS_SUCCESS 0x0 // may be in ntstatus.h
|
||||||
#endif
|
#endif
|
||||||
#ifndef STATUS_DLL_INIT_FAILED
|
#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
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -476,6 +479,7 @@ void ACTIVE_TASK::handle_exited_app(int stat) {
|
||||||
case 0xc000013a: // control-C??
|
case 0xc000013a: // control-C??
|
||||||
case 0x40010004: // vista shutdown?? can someone explain this?
|
case 0x40010004: // vista shutdown?? can someone explain this?
|
||||||
case STATUS_DLL_INIT_FAILED:
|
case STATUS_DLL_INIT_FAILED:
|
||||||
|
case STATUS_DLL_INIT_FAILED_LOGOFF:
|
||||||
// This can happen because:
|
// This can happen because:
|
||||||
// - The OS is shutting down, and attempting to start
|
// - The OS is shutting down, and attempting to start
|
||||||
// any new application fails automatically.
|
// any new application fails automatically.
|
||||||
|
|
Loading…
Reference in New Issue