small bugfix

svn path=/trunk/; revision=6745
This commit is contained in:
Thomas Bluemel 2003-11-21 23:05:28 +00:00
parent 72d71d1055
commit 532cb947f9

View file

@ -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.33 2003/11/21 17:01:16 navaraf Exp $
/* $Id: msgqueue.c,v 1.34 2003/11/21 23:05:28 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -224,13 +224,12 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh,
{
DbgPrint("Changing Focus window to 0x%X\n", Wnd);
Window = IntGetWindowObject(Wnd);
SpareLParam = MAKELONG(WinPosWindowFromPoint(ScopeWin, Message->Msg.pt, &Window), Msg);
if(Window)
{
Result = NtUserSendMessage(Wnd, WM_MOUSEACTIVATE, (WPARAM)NtUserGetParent(Window->Self), (LPARAM)SpareLParam);
IntReleaseWindowObject(Window);
switch (Result)
{
case MA_NOACTIVATEANDEAT:
@ -247,6 +246,12 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh,
break;
}
}
else
{
ExFreePool(Message);
return(FALSE);
}
}
}