user32/tests: check return value of GetUpdateRect in test_validatergn

Dmitry Timoshkov dmitry at codeweavers.com
Sat May 22 03:45:51 CDT 2010


Austin English <austinenglish at gmail.com> wrote:

>      ValidateRect( hwnd, &rc);
>      ret = GetUpdateRect( child, &rc2, 0);
> +    ok(!ret, "GetUpdateRect failed %08x\n", GetLastError());
>      ok( rc2.left == 0 && rc2.top == 0 && rc2.right == 0 && rc2.bottom == 0,
>              "Update rectangle %d,%d-%d,%d is not empty!\n", rc2.left, rc2.top,
>              rc2.right, rc2.bottom);
> @@ -3228,6 +3230,7 @@ static void test_validatergn(HWND hwnd)
>      rgn = CreateRectRgnIndirect( &rc);
>      ValidateRgn( hwnd, rgn);
>      ret = GetUpdateRect( child, &rc2, 0);
> +    ok(!ret, "GetUpdateRect failed %08x\n", GetLastError());

Please set last error to 0xdeadbeef prior checking it, and print last error
value in decimal.

-- 
Dmitry.



More information about the wine-devel mailing list