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); } /*