From a46eeba526f55a59d598e0a604f4cd0fb27ad06f Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Sun, 25 Jan 2015 15:26:13 +0000 Subject: [PATCH] [WIN32K:NTUSER] - Do not use pwndChild uninitialized in co_WinPosSearchChildren svn path=/trunk/; revision=66084 --- reactos/win32ss/user/ntuser/winpos.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/win32ss/user/ntuser/winpos.c b/reactos/win32ss/user/ntuser/winpos.c index f2a0b8df5bc..9e3df24e252 100644 --- a/reactos/win32ss/user/ntuser/winpos.c +++ b/reactos/win32ss/user/ntuser/winpos.c @@ -2438,10 +2438,10 @@ co_WinPosSearchChildren( 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 @@ co_WinPosSearchChildren( 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 @@ co_WinPosSearchChildren( } else { - if (*HitTest == HTNOWHERE && pwndChild == NULL) *HitTest = HTCLIENT; + if (*HitTest == HTNOWHERE) *HitTest = HTCLIENT; } return ScopeWin;