Commit in reactos/lib/kernel32/synch on MAIN
wait.c+8-11.29 -> 1.30
- Terminate the wait thread if the handle was from a console.

reactos/lib/kernel32/synch
wait.c 1.29 -> 1.30
diff -u -r1.29 -r1.30
--- wait.c	18 Jul 2004 23:52:31 -0000	1.29
+++ wait.c	2 Oct 2004 10:19:38 -0000	1.30
@@ -1,4 +1,4 @@
-/* $Id: wait.c,v 1.29 2004/07/18 23:52:31 navaraf Exp $
+/* $Id: wait.c,v 1.30 2004/10/02 10:19:38 hbirr Exp $
  *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS system libraries
@@ -105,6 +105,7 @@
 	      SetLastErrorByStatus (Status);
 	      return FALSE;
 	    }
+	  CloseWaitHandle = TRUE;
 	}
     }
 
@@ -123,7 +124,10 @@
 				 TimePtr);
 
   if (CloseWaitHandle)
+  {
+    TerminateThread(hHandle, 0);
     NtClose(hHandle);
+  }
 
   if (HIWORD(Status))
     {
@@ -245,7 +249,10 @@
 
   for (i = 0; i < nCount; i++)
     if (FreeThisHandle[i])
+    {
+      TerminateThread(HandleBuffer[i], 0);
       NtClose(HandleBuffer[i]);
+    }
 
   RtlFreeHeap(RtlGetProcessHeap(), 0, HandleBuffer);
 
CVSspam 0.2.8