Commit 9a1e0a09 authored by Mike Hearn's avatar Mike Hearn Committed by Alexandre Julliard

Prevent false matches in WIN_FindWindow.

parent 96444283
......@@ -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++;
}
}
......
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