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) ...@@ -7055,7 +7055,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs = 0; num_gettext_msgs = 0;
found = FindWindowExA( 0, 0, "MainWindowClass", "" ); found = FindWindowExA( 0, 0, "MainWindowClass", "" );
ok( found == NULL, "expected a NULL hwnd\n" ); ok( found == NULL, "expected a NULL hwnd\n" );
todo_wine
ok( num_gettext_msgs == 0, "got %u WM_GETTEXT messages\n", num_gettext_msgs ); ok( num_gettext_msgs == 0, "got %u WM_GETTEXT messages\n", num_gettext_msgs );
num_gettext_msgs = 0; num_gettext_msgs = 0;
...@@ -7066,7 +7065,6 @@ static void test_FindWindowEx(void) ...@@ -7066,7 +7065,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs = 0; num_gettext_msgs = 0;
found = FindWindowExA( 0, 0, "MainWindowClass", "caption" ); found = FindWindowExA( 0, 0, "MainWindowClass", "caption" );
ok( found == hwnd, "found is %p, expected a valid hwnd\n", found ); 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 ); ok( num_gettext_msgs == 0, "got %u WM_GETTEXT messages\n", num_gettext_msgs );
DestroyWindow( hwnd ); DestroyWindow( hwnd );
...@@ -7077,7 +7075,6 @@ static void test_FindWindowEx(void) ...@@ -7077,7 +7075,6 @@ static void test_FindWindowEx(void)
num_gettext_msgs = 0; num_gettext_msgs = 0;
found = FindWindowExA( 0, 0, "MainWindowClass", "" ); found = FindWindowExA( 0, 0, "MainWindowClass", "" );
ok( found == hwnd, "found is %p, expected a valid hwnd\n", found ); 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 ); ok( num_gettext_msgs == 0, "got %u WM_GETTEXT messages\n", num_gettext_msgs );
num_gettext_msgs = 0; num_gettext_msgs = 0;
......
...@@ -1941,7 +1941,7 @@ HWND WINAPI FindWindowExW( HWND parent, HWND child, LPCWSTR className, LPCWSTR t ...@@ -1941,7 +1941,7 @@ HWND WINAPI FindWindowExW( HWND parent, HWND child, LPCWSTR className, LPCWSTR t
{ {
while (list[i]) while (list[i])
{ {
if (GetWindowTextW( list[i], buffer, len + 1 )) if (InternalGetWindowText( list[i], buffer, len + 1 ))
{ {
if (!strcmpiW( buffer, title )) break; 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