minor fix

svn path=/trunk/; revision=9153
This commit is contained in:
Thomas Bluemel 2004-04-16 01:27:44 +00:00
parent 8eca059c02
commit fb6ac7fe65

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: msgqueue.c,v 1.88 2004/04/15 23:36:03 weiden Exp $ /* $Id: msgqueue.c,v 1.89 2004/04/16 01:27:44 weiden Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -540,22 +540,17 @@ MsqPeekHardwareMessage(PUSER_MESSAGE_QUEUE MessageQueue, HWND hWnd,
if (!Remove) if (!Remove)
{ {
IntLockHardwareMessageQueue(MessageQueue); IntLockHardwareMessageQueue(MessageQueue);
if((Current->Msg.message == WM_MOUSEMOVE) && MessageQueue->MouseMoveMsg) if(Current->Msg.message == WM_MOUSEMOVE)
{ {
/* we do not hold more than one WM_MOUSEMOVE message in the queue */ if(MessageQueue->MouseMoveMsg)
MessageQueue->MouseMoveMsg->Msg = Current->Msg;
*Message = MessageQueue->MouseMoveMsg;
ExFreePool(Current);
}
else
{
InsertTailList(&MessageQueue->HardwareMessagesListHead,
&Current->ListEntry);
if(Current->Msg.message == WM_MOUSEMOVE)
{ {
MessageQueue->MouseMoveMsg = Current; RemoveEntryList(&MessageQueue->MouseMoveMsg->ListEntry);
ExFreePool(MessageQueue->MouseMoveMsg);
} }
MessageQueue->MouseMoveMsg = Current;
} }
InsertTailList(&MessageQueue->HardwareMessagesListHead,
&Current->ListEntry);
IntUnLockHardwareMessageQueue(MessageQueue); IntUnLockHardwareMessageQueue(MessageQueue);
} }
IntUnLockSystemHardwareMessageQueueLock(FALSE); IntUnLockSystemHardwareMessageQueueLock(FALSE);