mirror of
https://github.com/reactos/wine.git
synced 2025-02-12 23:58:56 +00:00
user32: Avoid sending window messages in FindWindowExW.
This commit is contained in:
parent
c56ba461a2
commit
d5ba7451a3
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user