Commit in reactos/subsys/win32k/ntuser on MAIN
message.c+5-51.72 -> 1.73
msgqueue.c+3-31.105 -> 1.106
+8-8
2 modified files
Fix external termination of thread while thread is waiting in GetMessage()

reactos/subsys/win32k/ntuser
message.c 1.72 -> 1.73
diff -u -r1.72 -r1.73
--- message.c	26 Aug 2004 12:29:37 -0000	1.72
+++ message.c	12 Sep 2004 19:29:22 -0000	1.73
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: message.c,v 1.72 2004/08/26 12:29:37 gvg Exp $
+/* $Id: message.c,v 1.73 2004/09/12 19:29:22 gvg Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -855,7 +855,7 @@
       /* Nothing found. Wait for new messages. */
       Status = MsqWaitForNewMessages(ThreadQueue);
     }
-  while (STATUS_WAIT_0 <= STATUS_WAIT_0 && Status <= STATUS_WAIT_63);
+  while (STATUS_WAIT_0 <= Status && Status <= STATUS_WAIT_63);
 
   SetLastNtError(Status);
 
@@ -953,9 +953,9 @@
 	      return (BOOL) -1;
 	    }
 	}
-      else
-	{
-	  IntWaitMessage(Wnd, MsgFilterMin, MsgFilterMax);
+      else if (! IntWaitMessage(Wnd, MsgFilterMin, MsgFilterMax))
+        {
+          return (BOOL) -1;
 	}
     }
   while (! GotMessage);

reactos/subsys/win32k/ntuser
msgqueue.c 1.105 -> 1.106
diff -u -r1.105 -r1.106
--- msgqueue.c	28 Aug 2004 15:01:46 -0000	1.105
+++ msgqueue.c	12 Sep 2004 19:29:23 -0000	1.106
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: msgqueue.c,v 1.105 2004/08/28 15:01:46 gvg Exp $
+/* $Id: msgqueue.c,v 1.106 2004/09/12 19:29:23 gvg Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -425,7 +425,7 @@
   do
     {
       WaitStatus = KeWaitForMultipleObjects(2, WaitObjects, WaitAny, UserRequest,
-                                            UserMode, TRUE, NULL, NULL);
+                                            UserMode, FALSE, NULL, NULL);
       while (MsqDispatchOneSentMessage(MessageQueue))
         {
           ;
@@ -1091,7 +1091,7 @@
 				  WaitAny,
 				  Executive,
 				  UserMode,
-				  TRUE,
+				  FALSE,
 				  NULL,
 				  NULL));
 }
CVSspam 0.2.8