Be sure to REALLY compare the Client ID (both Process and Thread handles).
svn path=/branches/ros-csrss/; revision=58074
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;