user32: Make the excessive scroll test pass under Windows

Dmitry Timoshkov dmitry at codeweavers.com
Mon Mar 5 23:12:19 CST 2007


Hello,

this patch doesn't cause any failures in the Wine test run.

Changelog:
    user32: Make the excessive scroll test pass under Windows.

---
 dlls/user32/tests/win.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c
index c15e62f..c9d0b3b 100644
--- a/dlls/user32/tests/win.c
+++ b/dlls/user32/tests/win.c
@@ -2991,13 +2991,14 @@ static void test_scrollvalidate( HWND parent)
     CombineRgn( exprgn, exprgn, tmprgn, RGN_OR);
     ok( EqualRgn( exprgn, hrgn), "wrong update region\n");
 
+    /* clear an update region */
+    UpdateWindow( hwnd1 );
+
     SetRect( &rc, 0,40, 100,60);
     SetRect( &cliprc, 0,0, 100,100);
     ScrollWindowEx( hwnd1, 0, -25, &rc, &cliprc, hrgn, &rcu, SW_INVALIDATE);
-    SetRectRgn( tmprgn, 0,15,98,35);
-    CombineRgn( exprgn, exprgn, tmprgn, RGN_OR);
-    SetRectRgn( tmprgn, 0, 40, 98, 60);
-    CombineRgn( exprgn, exprgn, tmprgn, RGN_OR);
+    if (winetest_debug > 0) dump_region( hrgn );
+    SetRectRgn( exprgn, 0, 40, 98, 60 );
     ok( EqualRgn( exprgn, hrgn), "wrong update region in excessive scroll\n");
 
     /* now test ScrollWindowEx with a combination of
-- 
1.5.0.2






More information about the wine-patches mailing list