Be sure to REALLY compare the Client ID (both Process and Thread handles).

svn path=/branches/ros-csrss/; revision=58074
This commit is contained in:
Hermès Bélusca-Maïto 2013-01-01 02:21:05 +00:00
parent c61063134c
commit fc76ef76f0

View file

@ -205,8 +205,9 @@ CsrLocateThreadByClientId(OUT PCSR_PROCESS *Process OPTIONAL,
NextEntry = NextEntry->Flink;
/* Compare the CID */
// FIXME: if (*(PULONGLONG)&FoundThread->ClientId == *(PULONGLONG)ClientId)
if (FoundThread->ClientId.UniqueThread == ClientId->UniqueThread)
// if (*(PULONGLONG)&FoundThread->ClientId == *(PULONGLONG)ClientId)
if ( FoundThread->ClientId.UniqueProcess == ClientId->UniqueProcess &&
FoundThread->ClientId.UniqueThread == ClientId->UniqueThread )
{
/* Match found, return the process */
*Process = FoundThread->Process;