user32: Avoid sending window messages in FindWindowExW.

oldstable
Sebastian Lackner 2014-11-18 05:15:52 +01:00 committed by Alexandre Julliard
parent c56ba461a2
commit d5ba7451a3
2 changed files with 1 additions and 4 deletions

View File

@ -7055,7 +7055,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs = 0;
found = FindWindowExA( 0, 0, "MainWindowClass", "" );
ok( found == NULL, "expected a NULL hwnd\n" );
todo_wine
ok( num_gettext_msgs == 0, "got %u WM_GETTEXT messages\n", num_gettext_msgs );
num_gettext_msgs = 0;
@ -7066,7 +7065,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs = 0;
found = FindWindowExA( 0, 0, "MainWindowClass", "caption" );
ok( found == hwnd, "found is %p, expected a valid hwnd\n", found );
todo_wine
ok( num_gettext_msgs == 0, "got %u WM_GETTEXT messages\n", num_gettext_msgs );
DestroyWindow( hwnd );
@ -7077,7 +7075,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs = 0;
found = FindWindowExA( 0, 0, "MainWindowClass", "" );
ok( found == hwnd, "found is %p, expected a valid hwnd\n", found );
todo_wine
ok( num_gettext_msgs == 0, "got %u WM_GETTEXT messages\n", num_gettext_msgs );
num_gettext_msgs = 0;

View File

@ -1941,7 +1941,7 @@ HWND WINAPI FindWindowExW( HWND parent, HWND child, LPCWSTR className, LPCWSTR t
{
while (list[i])
{
if (GetWindowTextW( list[i], buffer, len + 1 ))
if (InternalGetWindowText( list[i], buffer, len + 1 ))
{
if (!strcmpiW( buffer, title )) break;
}