Commit 888d1c67 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

kernel32: Use session id stored in PEB in ProcessIdToSessionId.

parent 19e16319
......@@ -3742,10 +3742,10 @@ BOOL WINAPI K32GetProcessMemoryInfo(HANDLE process,
*/
BOOL WINAPI ProcessIdToSessionId( DWORD procid, DWORD *sessionid_ptr )
{
/* According to MSDN, if the calling process is not in a terminal
* services environment, then the sessionid returned is zero.
*/
*sessionid_ptr = 0;
if (procid != GetCurrentProcessId())
FIXME("Unsupported for other processes.\n");
*sessionid_ptr = NtCurrentTeb()->Peb->SessionId;
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment