Prevent false matches in WIN_FindWindow.

This commit is contained in:
Mike Hearn 2003-12-30 19:09:50 +00:00 committed by Alexandre Julliard
parent 9644428385
commit 9a1e0a097e
1 changed files with 1 additions and 1 deletions

View File

@ -1538,7 +1538,7 @@ static HWND WIN_FindWindow( HWND parent, HWND child, ATOM className, LPCWSTR tit
{
while (list[i])
{
if (GetWindowTextW( list[i], buffer, len ) && !strcmpiW( buffer, title )) break;
if (GetWindowTextW( list[i], buffer, len + 1 ) && !strcmpiW( buffer, title )) break;
i++;
}
}