From 936dffea066a78b17556f6c7629acfcd629f34da Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 22 Feb 2004 12:25:02 +0000 Subject: [PATCH] - Don't call IntSendMessage in MsqTranslateMouseMessage with uninitialized variable as window handle. svn path=/trunk/; revision=8304 --- reactos/subsys/win32k/ntuser/msgqueue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/msgqueue.c b/reactos/subsys/win32k/ntuser/msgqueue.c index f2bbfc05426..e2138ed08f3 100644 --- a/reactos/subsys/win32k/ntuser/msgqueue.c +++ b/reactos/subsys/win32k/ntuser/msgqueue.c @@ -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.67 2004/02/19 21:12:09 weiden Exp $ +/* $Id: msgqueue.c,v 1.68 2004/02/22 12:25:02 navaraf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -243,7 +243,6 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh, { USHORT Msg = Message->Msg.message; PWINDOW_OBJECT CaptureWin, Window = NULL; - HWND Wnd; POINT Point; LPARAM SpareLParam; LRESULT Result; @@ -265,7 +264,7 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh, if(Window && (Hit != (USHORT)HTTRANSPARENT)) { - Result = IntSendMessage(Wnd, WM_MOUSEACTIVATE, (WPARAM)NtUserGetParent(Window->Self), (LPARAM)SpareLParam); + Result = IntSendMessage(Window->Self, WM_MOUSEACTIVATE, (WPARAM)NtUserGetParent(Window->Self), (LPARAM)SpareLParam); switch (Result) { @@ -982,6 +981,7 @@ MsqCreateMessageQueue(struct _ETHREAD *Thread) MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(PagedPool, sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO), TAG_MSGQ); + RtlZeroMemory(MessageQueue, sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO)); if (!MessageQueue) { return NULL;