kernel32: Improved WTSGetActiveConsoleSessionId stub.

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:20:50 +02:00 committed by Alexandre Julliard
parent e4e1b89732
commit ebb320fa37
1 changed files with 2 additions and 1 deletions

View File

@ -3876,7 +3876,8 @@ DWORD WINAPI WTSGetActiveConsoleSessionId(void)
{ {
static int once; static int once;
if (!once++) FIXME("stub\n"); if (!once++) FIXME("stub\n");
return 0; /* Return current session id. */
return NtCurrentTeb()->Peb->SessionId;
} }
/********************************************************************** /**********************************************************************