mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
fixed WinPosWindowFromPoint() to reference the returning window object
svn path=/trunk/; revision=7085
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user