From 20a1d1968d5efb1ee629970c30e5fcc24d168c9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sat, 21 Sep 2013 20:14:22 +0000 Subject: [PATCH] [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 --- reactos/include/ndk/psfuncs.h | 3 ++- reactos/ntoskrnl/ps/process.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/reactos/include/ndk/psfuncs.h b/reactos/include/ndk/psfuncs.h index d0439120a79..40d200f16c3 100644 --- a/reactos/include/ndk/psfuncs.h +++ b/reactos/include/ndk/psfuncs.h @@ -199,7 +199,8 @@ PsGetProcessExitStatus( _In_ PEPROCESS Process ); -HANDLE +NTKERNELAPI +ULONG NTAPI PsGetProcessSessionId( _In_ PEPROCESS Process diff --git a/reactos/ntoskrnl/ps/process.c b/reactos/ntoskrnl/ps/process.c index 1f881e65826..48e5054e616 100644 --- a/reactos/ntoskrnl/ps/process.c +++ b/reactos/ntoskrnl/ps/process.c @@ -1147,11 +1147,11 @@ PsGetProcessSecurityPort(PEPROCESS Process) /* * @implemented */ -HANDLE +ULONG NTAPI PsGetProcessSessionId(PEPROCESS Process) { - return (HANDLE)Process->Session; + return MmGetSessionId(Process); } /*