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>
This commit is contained in:
Huw Davies 2016-09-05 10:45:11 +01:00 committed by Alexandre Julliard
parent f41db1a163
commit 1c70de2a34

View file

@ -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 );