kernel32: Use session id stored in PEB in ProcessIdToSessionId.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
19e16319b8
commit
888d1c67bb
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue