diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 5ed0a0622b1..404017f4a81 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -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; diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 73cad0c372a..0516193a6a8 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -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; }