Commit d5ba7451 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

user32: Avoid sending window messages in FindWindowExW.

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