mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
window pointer was incorrectly passed as wparam to co_IntSendMessage instead of hwnd
svn path=/trunk/; revision=17729
This commit is contained in:
parent
a401832d5f
commit
5d8ed11b10
1 changed files with 9 additions and 1 deletions
|
@ -506,6 +506,7 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB
|
|||
USHORT *HitTest)
|
||||
{
|
||||
ULONG Result;
|
||||
PWINDOW_OBJECT Parent;
|
||||
|
||||
if(*HitTest == (USHORT)HTTRANSPARENT)
|
||||
{
|
||||
|
@ -513,7 +514,14 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
Result = co_IntSendMessage(MsgWindow->hSelf, WM_MOUSEACTIVATE, (WPARAM)IntGetParent(MsgWindow), (LPARAM)MAKELONG(*HitTest, Msg->message));
|
||||
Parent = IntGetParent(MsgWindow);
|
||||
/* fixme: abort if no parent ? */
|
||||
Result = co_IntSendMessage(MsgWindow->hSelf,
|
||||
WM_MOUSEACTIVATE,
|
||||
(WPARAM) (Parent ? Parent->hSelf : NULL),
|
||||
(LPARAM)MAKELONG(*HitTest, Msg->message)
|
||||
);
|
||||
|
||||
switch (Result)
|
||||
{
|
||||
case MA_NOACTIVATEANDEAT:
|
||||
|
|
Loading…
Reference in a new issue