Author: ion
Date: Sun Feb 19 11:34:45 2012
New Revision: 55710
URL:
http://svn.reactos.org/svn/reactos?rev=55710&view=rev
Log:
[CSRSRV]: It seems safe to now enable the #if0'ed out functionality of
CsrCreateThread, as all thread/processes are tracked properly now.
Modified:
trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c
Modified: trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/csr…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/csrsrv/thredsup.c [iso-8859-1] Sun Feb 19
11:34:45 2012
@@ -317,20 +317,17 @@
IN PCLIENT_ID ClientId)
{
PCSR_THREAD CsrThread;
- //PCSR_PROCESS CurrentProcess;
- //PCSR_THREAD CurrentThread = NtCurrentTeb()->CsrClientThread;
- //CLIENT_ID CurrentCid;
+ PCSR_PROCESS CurrentProcess;
+ PCSR_THREAD CurrentThread = NtCurrentTeb()->CsrClientThread;
+ CLIENT_ID CurrentCid;
KERNEL_USER_TIMES KernelTimes;
-// DPRINT1("CSRSRV: %s called\n", __FUNCTION__);
-
/* Get the current thread and CID */
- //CurrentCid = CurrentThread->ClientId;
-// DPRINT1("CALLER PID/TID: %lx/%lx\n", CurrentCid.UniqueProcess,
CurrentCid.UniqueThread);
+ CurrentCid = CurrentThread->ClientId;
/* Acquire the Process Lock */
CsrAcquireProcessLock();
-#if 0
+
/* Get the current Process and make sure the Thread is valid with this CID */
CurrentThread = CsrLocateThreadByClientId(&CurrentProcess,
&CurrentCid);
@@ -342,7 +339,7 @@
CsrReleaseProcessLock();
return STATUS_THREAD_IS_TERMINATING;
}
-#endif
+
/* Get the Thread Create Time */
NtQueryInformationThread(hThread,
ThreadTimes,