mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:05:43 +00:00
fixed dereferencing bug
svn path=/trunk/; revision=9415
This commit is contained in:
parent
3538785e6a
commit
4bee3087ac
1 changed files with 12 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: winpos.c,v 1.115 2004/05/13 20:46:28 navaraf Exp $
|
/* $Id: winpos.c,v 1.116 2004/05/16 13:57:49 weiden Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1360,20 +1360,29 @@ WinPosSearchChildren(
|
||||||
|
|
||||||
if ((List = IntWinListChildren(ScopeWin)))
|
if ((List = IntWinListChildren(ScopeWin)))
|
||||||
{
|
{
|
||||||
for (phWnd = List; *phWnd; ++phWnd, IntReleaseWindowObject(Current))
|
for (phWnd = List; *phWnd; ++phWnd)
|
||||||
{
|
{
|
||||||
if (!(Current = IntGetWindowObject(*phWnd)))
|
if (!(Current = IntGetWindowObject(*phWnd)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!(Current->Style & WS_VISIBLE))
|
if (!(Current->Style & WS_VISIBLE))
|
||||||
continue;
|
{
|
||||||
|
IntReleaseWindowObject(Current);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ((Current->Style & (WS_POPUP | WS_CHILD | WS_DISABLED)) ==
|
if ((Current->Style & (WS_POPUP | WS_CHILD | WS_DISABLED)) ==
|
||||||
(WS_CHILD | WS_DISABLED))
|
(WS_CHILD | WS_DISABLED))
|
||||||
|
{
|
||||||
|
IntReleaseWindowObject(Current);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (!IntPtInWindow(Current, Point->x, Point->y))
|
if (!IntPtInWindow(Current, Point->x, Point->y))
|
||||||
|
{
|
||||||
|
IntReleaseWindowObject(Current);
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (*Window)
|
if (*Window)
|
||||||
IntReleaseWindowObject(*Window);
|
IntReleaseWindowObject(*Window);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue