From d9f7e0d792142342e67bc5b7712117b75c5a82c3 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 15 Oct 2009 20:07:47 +0000 Subject: [PATCH] The SessionId is not the same as the session pointer. Add fixed code for PsGetThreadSessionId, commented out as we don't have support for Sessions anyway. svn path=/branches/ros-amd64-bringup/; revision=43501 --- reactos/ntoskrnl/ps/thread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reactos/ntoskrnl/ps/thread.c b/reactos/ntoskrnl/ps/thread.c index d5e3be4b048..78269bc8eac 100644 --- a/reactos/ntoskrnl/ps/thread.c +++ b/reactos/ntoskrnl/ps/thread.c @@ -736,6 +736,11 @@ NTAPI PsGetThreadSessionId(IN PETHREAD Thread) { return (HANDLE)Thread->ThreadsProcess->Session; +#if 0 + // Should probably return a DWORD + PMM_SESSION_SPACE Session = Thread->ThreadsProcess->Session; + return Session->SessionId; +#endif } /*