mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
small bugfix
svn path=/trunk/; revision=6745
This commit is contained in:
parent
72d71d1055
commit
532cb947f9
|
@ -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.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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -224,13 +224,12 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh,
|
||||||
{
|
{
|
||||||
DbgPrint("Changing Focus window to 0x%X\n", Wnd);
|
DbgPrint("Changing Focus window to 0x%X\n", Wnd);
|
||||||
|
|
||||||
Window = IntGetWindowObject(Wnd);
|
|
||||||
SpareLParam = MAKELONG(WinPosWindowFromPoint(ScopeWin, Message->Msg.pt, &Window), Msg);
|
SpareLParam = MAKELONG(WinPosWindowFromPoint(ScopeWin, Message->Msg.pt, &Window), Msg);
|
||||||
|
|
||||||
|
if(Window)
|
||||||
|
{
|
||||||
Result = NtUserSendMessage(Wnd, WM_MOUSEACTIVATE, (WPARAM)NtUserGetParent(Window->Self), (LPARAM)SpareLParam);
|
Result = NtUserSendMessage(Wnd, WM_MOUSEACTIVATE, (WPARAM)NtUserGetParent(Window->Self), (LPARAM)SpareLParam);
|
||||||
|
|
||||||
IntReleaseWindowObject(Window);
|
|
||||||
|
|
||||||
switch (Result)
|
switch (Result)
|
||||||
{
|
{
|
||||||
case MA_NOACTIVATEANDEAT:
|
case MA_NOACTIVATEANDEAT:
|
||||||
|
@ -247,6 +246,12 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ExFreePool(Message);
|
||||||
|
return(FALSE);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue