mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[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:
parent
b2cabd4df9
commit
83ad639dc9
1 changed files with 6 additions and 9 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue