fixed WinPosWindowFromPoint() to reference the returning window object

svn path=/trunk/; revision=7085
This commit is contained in:
Thomas Bluemel
2003-12-15 21:51:10 +00:00
parent 09b8fd44b9
commit a8a0a11c74
2 changed files with 9 additions and 3 deletions
+3 -2
View File
@@ -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:
+6 -1
View File
@@ -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);