Commit 598993f4 authored by Pavel Roskin's avatar Pavel Roskin Committed by Alexandre Julliard

Fixed bug introduced in WIN_FindWindow.

parent 30881622
......@@ -1384,7 +1384,7 @@ static HWND WIN_FindWindow( HWND parent, HWND child, ATOM className,
}
while (pWnd)
for ( ; pWnd ; WIN_UpdateWndPtr(&pWnd,pWnd->next))
{
if (className && !(pWnd->dwStyle & WS_CHILD))
{
......@@ -1401,13 +1401,12 @@ static HWND WIN_FindWindow( HWND parent, HWND child, ATOM className,
{
retvalue = pWnd->hwndSelf;
goto end;
}
}
if (pWnd->text && !strcmp( pWnd->text, title ))
{
retvalue = pWnd->hwndSelf;
goto end;
}
WIN_UpdateWndPtr(&pWnd,pWnd->next);
}
}
retvalue = 0;
end:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment