[CSRSRV]: It seems safe to now enable the #if0'ed out functionality of CsrCreateThread, as all thread/processes are tracked properly now.

svn path=/trunk/; revision=55710
This commit is contained in:
Alex Ionescu 2012-02-19 11:34:45 +00:00
parent b2cabd4df9
commit 83ad639dc9

View file

@ -317,20 +317,17 @@ CsrCreateThread(IN PCSR_PROCESS CsrProcess,
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 @@ CsrCreateThread(IN PCSR_PROCESS CsrProcess,
CsrReleaseProcessLock();
return STATUS_THREAD_IS_TERMINATING;
}
#endif
/* Get the Thread Create Time */
NtQueryInformationThread(hThread,
ThreadTimes,