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, ...@@ -3742,10 +3742,10 @@ BOOL WINAPI K32GetProcessMemoryInfo(HANDLE process,
*/ */
BOOL WINAPI ProcessIdToSessionId( DWORD procid, DWORD *sessionid_ptr ) BOOL WINAPI ProcessIdToSessionId( DWORD procid, DWORD *sessionid_ptr )
{ {
/* According to MSDN, if the calling process is not in a terminal if (procid != GetCurrentProcessId())
* services environment, then the sessionid returned is zero. FIXME("Unsupported for other processes.\n");
*/
*sessionid_ptr = 0; *sessionid_ptr = NtCurrentTeb()->Peb->SessionId;
return TRUE; 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