Author: hbelusca
Date: Tue Jan 1 02:21:05 2013
New Revision: 58074
URL:
http://svn.reactos.org/svn/reactos?rev=58074&view=rev
Log:
[CSRSRV]
Be sure to REALLY compare the Client ID (both Process and Thread handles).
Modified:
branches/ros-csrss/subsystems/win32/csrsrv/thredsup.c
Modified: branches/ros-csrss/subsystems/win32/csrsrv/thredsup.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-csrss/subsystems/win32/csrs…
==============================================================================
--- branches/ros-csrss/subsystems/win32/csrsrv/thredsup.c [iso-8859-1] (original)
+++ branches/ros-csrss/subsystems/win32/csrsrv/thredsup.c [iso-8859-1] Tue Jan 1 02:21:05
2013
@@ -205,8 +205,9 @@
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;