- Do not send the WM_MOUSEACTIVATE message for a window that has no parent.

- Fixes visual basic application crashes when clicking on form. See bug #3111 for more details.

svn path=/trunk/; revision=36950
This commit is contained in:
Michael Martin 2008-10-25 16:08:59 +00:00
parent bb641e28cb
commit b8e2e47d4e

View file

@ -597,7 +597,14 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB
}
Parent = IntGetParent(MsgWindow);//fixme: deref retval?
/* fixme: abort if no parent ? */
/* If there is no parent, do not send the WM_MOUSEACTIVATE message. Fixes Bug #3111 */
if (!Parent)
{
co_IntMouseActivateWindow(MsgWindow);
return FALSE;
}
Result = co_IntSendMessage(MsgWindow->hSelf,
WM_MOUSEACTIVATE,
(WPARAM) (Parent ? Parent->hSelf : NULL),