Commit in reactos/ntoskrnl/ps on MAIN
kill.c+2-21.70 -> 1.71
stop kernel crashing on thread termination

reactos/ntoskrnl/ps
kill.c 1.70 -> 1.71
diff -u -r1.70 -r1.71
--- kill.c	5 Jan 2004 14:28:21 -0000	1.70
+++ kill.c	28 Apr 2004 23:46:26 -0000	1.71
@@ -1,4 +1,4 @@
-/* $Id: kill.c,v 1.70 2004/01/05 14:28:21 weiden Exp $
+/* $Id: kill.c,v 1.71 2004/04/28 23:46:26 tamlin Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
@@ -252,7 +252,7 @@
     {
       DPRINT("Unblocking thread\n");
       Status = STATUS_THREAD_IS_TERMINATING;
-      PsUnblockThread(Thread, &Status);
+      KeRemoveAllWaitsThread(Thread, Status, TRUE);
     }
 }
 
CVSspam 0.2.8