[NTOS]: Fix declaration and definition of PsGetProcessSessionId: indeed, as PsGetCurr...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 21 Sep 2013 20:14:22 +0000 (20:14 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 21 Sep 2013 20:14:22 +0000 (20:14 +0000)
svn path=/trunk/; revision=60293

reactos/include/ndk/psfuncs.h
reactos/ntoskrnl/ps/process.c

index d043912..40d200f 100644 (file)
@@ -199,7 +199,8 @@ PsGetProcessExitStatus(
     _In_ PEPROCESS Process
 );
 
-HANDLE
+NTKERNELAPI
+ULONG
 NTAPI
 PsGetProcessSessionId(
     _In_ PEPROCESS Process
index 1f881e6..48e5054 100644 (file)
@@ -1147,11 +1147,11 @@ PsGetProcessSecurityPort(PEPROCESS Process)
 /*
  * @implemented
  */
-HANDLE
+ULONG
 NTAPI
 PsGetProcessSessionId(PEPROCESS Process)
 {
-    return (HANDLE)Process->Session;
+    return MmGetSessionId(Process);
 }
 
 /*