mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- 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:
parent
bb641e28cb
commit
b8e2e47d4e
1 changed files with 8 additions and 1 deletions
|
@ -597,7 +597,14 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB
|
||||||
}
|
}
|
||||||
|
|
||||||
Parent = IntGetParent(MsgWindow);//fixme: deref retval?
|
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,
|
Result = co_IntSendMessage(MsgWindow->hSelf,
|
||||||
WM_MOUSEACTIVATE,
|
WM_MOUSEACTIVATE,
|
||||||
(WPARAM) (Parent ? Parent->hSelf : NULL),
|
(WPARAM) (Parent ? Parent->hSelf : NULL),
|
||||||
|
|
Loading…
Reference in a new issue