mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[WINSRV]
Do not kill system processes when a user is logging off. Fixes user logoff. #CORE-2391 #resolve svn path=/trunk/; revision=70350
This commit is contained in:
parent
e0b85f16d3
commit
875158be3e
1 changed files with 8 additions and 0 deletions
|
@ -763,6 +763,14 @@ UserClientShutdown(IN PCSR_PROCESS CsrProcess,
|
||||||
* Check for process validity
|
* Check for process validity
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Do not kill system processes when a user is logging off */
|
||||||
|
if ((Flags & EWX_SHUTDOWN) == EWX_LOGOFF &&
|
||||||
|
(CsrProcess->ShutdownFlags & (SHUTDOWN_OTHERCONTEXT | SHUTDOWN_SYSTEMCONTEXT)))
|
||||||
|
{
|
||||||
|
DPRINT1("Do not kill a system process in a logoff request!\n");
|
||||||
|
return CsrShutdownNonCsrProcess;
|
||||||
|
}
|
||||||
|
|
||||||
/* Do not kill Winlogon or CSRSS */
|
/* Do not kill Winlogon or CSRSS */
|
||||||
if (CsrProcess->ClientId.UniqueProcess == NtCurrentProcess() ||
|
if (CsrProcess->ClientId.UniqueProcess == NtCurrentProcess() ||
|
||||||
CsrProcess->ClientId.UniqueProcess == UlongToHandle(LogonProcessId))
|
CsrProcess->ClientId.UniqueProcess == UlongToHandle(LogonProcessId))
|
||||||
|
|
Loading…
Reference in a new issue