mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 21:55:08 +00:00
- Don't call IntSendMessage in MsqTranslateMouseMessage with uninitialized variable as window handle.
svn path=/trunk/; revision=8304
This commit is contained in:
parent
2ae57f1248
commit
936dffea06
|
@ -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.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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -243,7 +243,6 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh,
|
||||||
{
|
{
|
||||||
USHORT Msg = Message->Msg.message;
|
USHORT Msg = Message->Msg.message;
|
||||||
PWINDOW_OBJECT CaptureWin, Window = NULL;
|
PWINDOW_OBJECT CaptureWin, Window = NULL;
|
||||||
HWND Wnd;
|
|
||||||
POINT Point;
|
POINT Point;
|
||||||
LPARAM SpareLParam;
|
LPARAM SpareLParam;
|
||||||
LRESULT Result;
|
LRESULT Result;
|
||||||
|
@ -265,7 +264,7 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh,
|
||||||
|
|
||||||
if(Window && (Hit != (USHORT)HTTRANSPARENT))
|
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)
|
switch (Result)
|
||||||
{
|
{
|
||||||
|
@ -982,6 +981,7 @@ MsqCreateMessageQueue(struct _ETHREAD *Thread)
|
||||||
MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(PagedPool,
|
MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(PagedPool,
|
||||||
sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO),
|
sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO),
|
||||||
TAG_MSGQ);
|
TAG_MSGQ);
|
||||||
|
RtlZeroMemory(MessageQueue, sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO));
|
||||||
if (!MessageQueue)
|
if (!MessageQueue)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue