Author: hbelusca
Date: Sat Sep 21 20:14:22 2013
New Revision: 60293
URL:
http://svn.reactos.org/svn/reactos?rev=60293&view=rev
Log:
[NTOS]: Fix declaration and definition of PsGetProcessSessionId: indeed, as
PsGetCurrentProcessSessionId, we should call MmGetSessionId to retrieve the real process
session id.
Modified:
trunk/reactos/include/ndk/psfuncs.h
trunk/reactos/ntoskrnl/ps/process.c
Modified: trunk/reactos/include/ndk/psfuncs.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/psfuncs.h?rev=…
==============================================================================
--- trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/psfuncs.h [iso-8859-1] Sat Sep 21 20:14:22 2013
@@ -199,7 +199,8 @@
_In_ PEPROCESS Process
);
-HANDLE
+NTKERNELAPI
+ULONG
NTAPI
PsGetProcessSessionId(
_In_ PEPROCESS Process
Modified: trunk/reactos/ntoskrnl/ps/process.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/process.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/process.c [iso-8859-1] Sat Sep 21 20:14:22 2013
@@ -1147,11 +1147,11 @@
/*
* @implemented
*/
-HANDLE
+ULONG
NTAPI
PsGetProcessSessionId(PEPROCESS Process)
{
- return (HANDLE)Process->Session;
+ return MmGetSessionId(Process);
}
/*