mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 10:45:24 +00:00
[WIN32K:NTUSER]
- Do not use pwndChild uninitialized in co_WinPosSearchChildren svn path=/trunk/; revision=66084
This commit is contained in:
parent
66cc347765
commit
a46eeba526
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue