Author: tfaber
Date: Sun Jan 25 15:26:13 2015
New Revision: 66084
URL:
http://svn.reactos.org/svn/reactos?rev=66084&view=rev
Log:
[WIN32K:NTUSER]
- Do not use pwndChild uninitialized in co_WinPosSearchChildren
Modified:
trunk/reactos/win32ss/user/ntuser/winpos.c
Modified: trunk/reactos/win32ss/user/ntuser/winpos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/winpos…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/winpos.c [iso-8859-1] Sun Jan 25 15:26:13 2015
@@ -2438,10 +2438,10 @@
UserReferenceObject(ScopeWin);
- if ( RECTL_bPointInRect(&ScopeWin->rcClient, Point->x, Point->y) )
+ if (RECTL_bPointInRect(&ScopeWin->rcClient, Point->x, Point->y))
{
List = IntWinListChildren(ScopeWin);
- if(List)
+ if (List)
{
for (phWnd = List; *phWnd; ++phWnd)
{
@@ -2452,7 +2452,7 @@
pwndChild = co_WinPosSearchChildren(pwndChild, Point, HitTest, Ignore);
- if(pwndChild != NULL)
+ if (pwndChild != NULL)
{
/* We found a window. Don't send any more WM_NCHITTEST messages
*/
ExFreePoolWithTag(List, USERTAG_WINDOWLIST);
@@ -2476,7 +2476,7 @@
}
else
{
- if (*HitTest == HTNOWHERE && pwndChild == NULL) *HitTest = HTCLIENT;
+ if (*HitTest == HTNOWHERE) *HitTest = HTCLIENT;
}
return ScopeWin;