[2/2] user32: RealChildWindowFromPoint should skip invisible windows.

Dmitry Timoshkov dmitry at baikal.ru
Mon Feb 6 05:59:00 CST 2012


This patch should fix the problem reported in the bug 17370.

win.c:6753: Test failed: FlashWindowEx succeeded
win.c:6764: Test failed: FlashWindowEx failed with -559038737

are intermittent, and have nothing to do with these tests.
---
 dlls/user32/tests/win.c |    2 +-
 dlls/user32/winpos.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index e760b4a..7d753f7 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -7038,9 +7038,9 @@ static void test_child_window_from_point(void)
 
     DestroyWindow(parent);
 
-todo_wine
     ok(!found_invisible, "found %d invisible windows\n", found_invisible);
     ok(found_disabled, "found %d disabled windows\n", found_disabled);
+todo_wine
     ok(found_groupbox == 4, "found %d groupbox windows\n", found_groupbox);
     ok(found_httransparent, "found %d found_httransparent windows\n", found_httransparent);
 todo_wine
diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 57ccb81..42f6b3e 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -376,7 +376,7 @@ HWND WINAPI ChildWindowFromPoint( HWND hwndParent, POINT pt )
  */
 HWND WINAPI RealChildWindowFromPoint( HWND hwndParent, POINT pt )
 {
-    return ChildWindowFromPointEx( hwndParent, pt, CWP_SKIPTRANSPARENT );
+    return ChildWindowFromPointEx( hwndParent, pt, CWP_SKIPTRANSPARENT | CWP_SKIPINVISIBLE );
 }
 
 /*******************************************************************
-- 
1.7.8.4




More information about the wine-patches mailing list