remove message from the list if it was freed in MsqTranslateMouseMessage()

svn path=/trunk/; revision=7055
This commit is contained in:
Thomas Bluemel 2003-12-14 19:04:51 +00:00
parent 2cc22c2214
commit fafd8079ae

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.44 2003/12/14 11:36:43 gvg Exp $ /* $Id: msgqueue.c,v 1.45 2003/12/14 19:04:51 weiden Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -393,6 +393,10 @@ MsqPeekHardwareMessage(PUSER_MESSAGE_QUEUE MessageQueue, HWND hWnd,
IntReleaseWindowObject(DesktopWindow); IntReleaseWindowObject(DesktopWindow);
return(TRUE); return(TRUE);
} }
else
{
RemoveEntryList(&Current->ListEntry);
}
} }
} }
ExReleaseFastMutex(&MessageQueue->HardwareLock); ExReleaseFastMutex(&MessageQueue->HardwareLock);