Module: wine Branch: master Commit: 19e16319b85ba2a50ed187435da50c1ef75d6a46 URL: http://source.winehq.org/git/wine.git/?a=commit;h=19e16319b85ba2a50ed187435d...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Oct 8 14:19:43 2015 +0200
ntdll: Initialize PEB SessionId to 1.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ntdll/thread.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c index 9f49cd4..aaf7a71 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c @@ -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 );