[PATCH 1/2] user32/tests: ValidateRect(NULL, &rect) on >= Win 8 no longer invalidates all windows.
Huw Davies
huw at codeweavers.com
Mon Sep 5 04:45:11 CDT 2016
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
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 );
--
2.8.2
More information about the wine-patches
mailing list