Module: wine Branch: master Commit: 1c70de2a340640a85eda21ce7987f36ec43bb435 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1c70de2a340640a85eda21ce79...
Author: Huw Davies huw@codeweavers.com Date: Mon Sep 5 10:45:11 2016 +0100
user32/tests: ValidateRect(NULL, &rect) on >= Win 8 no longer invalidates all windows.
Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/user32/tests/msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index ebd1c45..d4ca828 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -6709,7 +6709,8 @@ static void test_paint_messages(void) */ trace("testing ValidateRect(0, NULL)\n"); SetRectEmpty( &rect ); - if (ValidateRect(0, &rect)) /* not supported on Win9x */ + if (ValidateRect(0, &rect) && /* not supported on Win9x */ + GetUpdateRect(hwnd, NULL, FALSE)) /* or >= Win 8 */ { check_update_rgn( hwnd, hrgn ); ok_sequence( WmInvalidateErase, "InvalidateErase", FALSE );