[ros-diffs] [gdalsnes] 17729: window pointer was incorrectly passed as wparam to co_IntSendMessage instead of hwnd

gdalsnes at svn.reactos.com gdalsnes at svn.reactos.com
Wed Sep 7 23:05:33 CEST 2005


window pointer was incorrectly passed as wparam to co_IntSendMessage
instead of hwnd
Modified: trunk/reactos/subsys/win32k/ntuser/message.c
  _____  

Modified: trunk/reactos/subsys/win32k/ntuser/message.c
--- trunk/reactos/subsys/win32k/ntuser/message.c	2005-09-07
20:59:26 UTC (rev 17728)
+++ trunk/reactos/subsys/win32k/ntuser/message.c	2005-09-07
21:05:16 UTC (rev 17729)
@@ -506,6 +506,7 @@

                        USHORT *HitTest)
 {
   ULONG Result;
+  PWINDOW_OBJECT Parent;
 
   if(*HitTest == (USHORT)HTTRANSPARENT)
   {
@@ -513,7 +514,14 @@
     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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050907/ac388c9d/attachment.html


More information about the Ros-diffs mailing list