[ros-diffs] [mjmartin] 36965: - Correct fix for handling WM_MOUSEACTIVATE and Bug #3111. If no parent, use MsgWindow->hSelf as wParam.

mjmartin at svn.reactos.org mjmartin at svn.reactos.org
Sat Oct 25 20:42:43 CEST 2008


Author: mjmartin
Date: Sat Oct 25 13:42:42 2008
New Revision: 36965

URL: http://svn.reactos.org/svn/reactos?rev=36965&view=rev
Log:
- Correct fix for handling WM_MOUSEACTIVATE and Bug #3111. If no parent, use MsgWindow->hSelf as wParam.

Modified:
    trunk/reactos/subsystems/win32/win32k/ntuser/message.c

Modified: trunk/reactos/subsystems/win32/win32k/ntuser/message.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/message.c?rev=36965&r1=36964&r2=36965&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/message.c [iso-8859-1] Sat Oct 25 13:42:42 2008
@@ -598,16 +598,10 @@
 
    Parent = IntGetParent(MsgWindow);//fixme: deref retval?
 
-   /* If there is no parent, do not send the WM_MOUSEACTIVATE message. Fixes Bug #3111 */
-   if (!Parent)
-   {
-      co_IntMouseActivateWindow(MsgWindow);
-      return FALSE;
-   }
-
+   /* If no parent window, pass MsgWindows HWND as wParam. Fixes bug #3111 */
    Result = co_IntSendMessage(MsgWindow->hSelf,
                               WM_MOUSEACTIVATE,
-                              (WPARAM) (Parent ? Parent->hSelf : NULL),
+                              (WPARAM) (Parent ? Parent->hSelf : MsgWindow->hSelf),
                               (LPARAM)MAKELONG(*HitTest, Msg->message)
                              );
 



More information about the Ros-diffs mailing list