--- 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: