mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
NtOpenThread should look at the CIDs UniqueThread member only, not at
UniqueProcess. Makes OpenThread() work. svn path=/trunk/; revision=10460
This commit is contained in:
parent
d81fcdb79e
commit
0f07e3b53f
1 changed files with 2 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: thread.c,v 1.130 2004/07/23 07:44:26 jimtabor Exp $
|
||||
/* $Id: thread.c,v 1.131 2004/08/09 22:15:01 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -910,7 +910,6 @@ NtOpenThread(OUT PHANDLE ThreadHandle,
|
|||
PETHREAD EThread = NULL;
|
||||
|
||||
if((ClientId)
|
||||
&& (ClientId->UniqueProcess)
|
||||
&& (ClientId->UniqueThread))
|
||||
{
|
||||
// It is an error to specify both
|
||||
|
@ -923,8 +922,7 @@ NtOpenThread(OUT PHANDLE ThreadHandle,
|
|||
return(STATUS_INVALID_PARAMETER_MIX);
|
||||
}
|
||||
// Parameters mix OK
|
||||
Status = PsLookupProcessThreadByCid(ClientId,
|
||||
NULL,
|
||||
Status = PsLookupThreadByThreadId(ClientId->UniqueThread,
|
||||
& EThread);
|
||||
}
|
||||
else if((ObjectAttributes)
|
||||
|
|
Loading…
Reference in a new issue