mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -910,7 +910,6 @@ NtOpenThread(OUT PHANDLE ThreadHandle,
|
||||||
PETHREAD EThread = NULL;
|
PETHREAD EThread = NULL;
|
||||||
|
|
||||||
if((ClientId)
|
if((ClientId)
|
||||||
&& (ClientId->UniqueProcess)
|
|
||||||
&& (ClientId->UniqueThread))
|
&& (ClientId->UniqueThread))
|
||||||
{
|
{
|
||||||
// It is an error to specify both
|
// It is an error to specify both
|
||||||
|
@ -923,8 +922,7 @@ NtOpenThread(OUT PHANDLE ThreadHandle,
|
||||||
return(STATUS_INVALID_PARAMETER_MIX);
|
return(STATUS_INVALID_PARAMETER_MIX);
|
||||||
}
|
}
|
||||||
// Parameters mix OK
|
// Parameters mix OK
|
||||||
Status = PsLookupProcessThreadByCid(ClientId,
|
Status = PsLookupThreadByThreadId(ClientId->UniqueThread,
|
||||||
NULL,
|
|
||||||
& EThread);
|
& EThread);
|
||||||
}
|
}
|
||||||
else if((ObjectAttributes)
|
else if((ObjectAttributes)
|
||||||
|
|
Loading…
Reference in a new issue