diff --git a/reactos/subsys/win32k/ntuser/msgqueue.c b/reactos/subsys/win32k/ntuser/msgqueue.c index 4ebb1aef487..e19b71d5551 100644 --- a/reactos/subsys/win32k/ntuser/msgqueue.c +++ b/reactos/subsys/win32k/ntuser/msgqueue.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: msgqueue.c,v 1.49 2003/12/15 19:32:32 gvg Exp $ +/* $Id: msgqueue.c,v 1.50 2003/12/15 21:51:10 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -209,7 +209,8 @@ MsqTranslateMouseMessage(HWND hWnd, UINT FilterLow, UINT FilterHigh, if(Window) { Result = IntSendMessage(Wnd, WM_MOUSEACTIVATE, (WPARAM)NtUserGetParent(Window->Self), (LPARAM)SpareLParam, TRUE); - + IntReleaseWindowObject(Window); + switch (Result) { case MA_NOACTIVATEANDEAT: diff --git a/reactos/subsys/win32k/ntuser/winpos.c b/reactos/subsys/win32k/ntuser/winpos.c index d734d4d85a2..560357a12c0 100644 --- a/reactos/subsys/win32k/ntuser/winpos.c +++ b/reactos/subsys/win32k/ntuser/winpos.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: winpos.c,v 1.55 2003/12/14 11:36:43 gvg Exp $ +/* $Id: winpos.c,v 1.56 2003/12/15 21:51:10 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -1203,7 +1203,12 @@ WinPosSearchChildren(PWINDOW_OBJECT ScopeWin, POINT Point, (Current->Style & (WS_CHILD | WS_POPUP)) != WS_CHILD) && WinPosPtInWindow(Current, Point)) { + if(*Window) + ObmDereferenceObject(*Window); + ObmReferenceObjectByPointer(Current, otWindow); + *Window = Current; + if (Current->Style & WS_DISABLED) { ExReleaseFastMutexUnsafe(&ScopeWin->ChildrenListLock);