mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 09:41:48 +00:00
[CSRSRV]
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:
parent
c61063134c
commit
fc76ef76f0
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue