Commit in reactos/ntoskrnl/ps on MAIN
thread.c+2-41.130 -> 1.131
NtOpenThread should look at the CIDs UniqueThread member only, not at
UniqueProcess. Makes OpenThread() work.

reactos/ntoskrnl/ps
thread.c 1.130 -> 1.131
diff -u -r1.130 -r1.131
--- thread.c	23 Jul 2004 07:44:26 -0000	1.130
+++ thread.c	9 Aug 2004 22:15:01 -0000	1.131
@@ -1,4 +1,4 @@
-/* $Id: thread.c,v 1.130 2004/07/23 07:44:26 jimtabor Exp $
+/* $Id: thread.c,v 1.131 2004/08/09 22:15:01 gvg Exp $
  *
  * COPYRIGHT:              See COPYING in the top level directory
  * PROJECT:                ReactOS kernel
@@ -910,7 +910,6 @@
       PETHREAD EThread = NULL;
 
       if((ClientId)
-	&& (ClientId->UniqueProcess)
 	&& (ClientId->UniqueThread))
       {
          // It is an error to specify both
@@ -923,8 +922,7 @@
             return(STATUS_INVALID_PARAMETER_MIX);
 	 }
 	 // Parameters mix OK
-	 Status = PsLookupProcessThreadByCid(ClientId,
-                     NULL,
+         Status = PsLookupThreadByThreadId(ClientId->UniqueThread,
                      & EThread);
       }
       else if((ObjectAttributes)
CVSspam 0.2.8