ntdll: Initialize PEB SessionId to 1.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2015-10-08 14:19:43 +02:00 committed by Alexandre Julliard
parent a20d152282
commit 19e16319b8
1 changed files with 6 additions and 0 deletions

View File

@ -280,6 +280,12 @@ HANDLE thread_init(void)
#endif
#endif
/*
* Starting with Vista, the first user to log on has session id 1.
* Session id 0 is for processes that don't interact with the user (like services).
*/
peb->SessionId = 1;
/* allocate and initialize the initial TEB */
signal_alloc_thread( &teb );