[NTOS]: Fix declaration and definition of PsGetProcessSessionId: indeed, as PsGetCurrentProcessSessionId, we should call MmGetSessionId to retrieve the real process session id.

svn path=/trunk/; revision=60293
This commit is contained in:
Hermès Bélusca-Maïto 2013-09-21 20:14:22 +00:00
parent 4c6659967e
commit 20a1d1968d
2 changed files with 4 additions and 3 deletions

View file

@ -199,7 +199,8 @@ PsGetProcessExitStatus(
_In_ PEPROCESS Process
);
HANDLE
NTKERNELAPI
ULONG
NTAPI
PsGetProcessSessionId(
_In_ PEPROCESS Process

View file

@ -1147,11 +1147,11 @@ PsGetProcessSecurityPort(PEPROCESS Process)
/*
* @implemented
*/
HANDLE
ULONG
NTAPI
PsGetProcessSessionId(PEPROCESS Process)
{
return (HANDLE)Process->Session;
return MmGetSessionId(Process);
}
/*