Commit in reactos/subsys/win32k/ntuser on MAIN
msgqueue.c+5-31.84 -> 1.85
forgot to commit a fix

reactos/subsys/win32k/ntuser
msgqueue.c 1.84 -> 1.85
diff -u -r1.84 -r1.85
--- msgqueue.c	14 Apr 2004 17:19:38 -0000	1.84
+++ msgqueue.c	14 Apr 2004 17:35:47 -0000	1.85
@@ -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.84 2004/04/14 17:19:38 weiden Exp $
+/* $Id: msgqueue.c,v 1.85 2004/04/14 17:35:47 weiden Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -457,7 +457,8 @@
     }
   }
   
-  if(hWnd != NULL && Window->Self != hWnd)
+  if((hWnd != NULL && Window->Self != hWnd) ||
+     ((FilterLow != 0 || FilterLow != 0) && (Msg < FilterLow || Msg > FilterHigh)))
   {
     /* Reject the message because it doesn't match the filter */
     
@@ -475,7 +476,8 @@
     
     if (Message->Msg.message == WM_MOUSEMOVE)
     {
-      if(Window->MessageQueue->MouseMoveMsg)
+      if(Window->MessageQueue->MouseMoveMsg &&
+         (Window->MessageQueue->MouseMoveMsg != Message))
       {
         /* delete the old message */
         RemoveEntryList(&Window->MessageQueue->MouseMoveMsg->ListEntry);
CVSspam 0.2.8