window pointer was incorrectly passed as wparam to co_IntSendMessage instead of hwnd

svn path=/trunk/; revision=17729
This commit is contained in:
Gunnar Dalsnes 2005-09-07 21:05:16 +00:00
parent a401832d5f
commit 5d8ed11b10

View file

@ -506,6 +506,7 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB
USHORT *HitTest) USHORT *HitTest)
{ {
ULONG Result; ULONG Result;
PWINDOW_OBJECT Parent;
if(*HitTest == (USHORT)HTTRANSPARENT) if(*HitTest == (USHORT)HTTRANSPARENT)
{ {
@ -513,7 +514,14 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB
return TRUE; 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) switch (Result)
{ {
case MA_NOACTIVATEANDEAT: case MA_NOACTIVATEANDEAT: