From: Hermès Bélusca-Maïto Date: Tue, 1 Jan 2013 02:21:05 +0000 (+0000) Subject: [CSRSRV] X-Git-Tag: backups/ros-csrss@60644~98 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=fc76ef76f058cbd7f0f1c1abdd9388a1a4fe1712 [CSRSRV] Be sure to REALLY compare the Client ID (both Process and Thread handles). svn path=/branches/ros-csrss/; revision=58074 --- diff --git a/subsystems/win32/csrsrv/thredsup.c b/subsystems/win32/csrsrv/thredsup.c index 2dc9df00d61..5b74aa4d901 100644 --- a/subsystems/win32/csrsrv/thredsup.c +++ b/subsystems/win32/csrsrv/thredsup.c @@ -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;