Michael Stefaniuc : user32/tests: Use EqualRect() instead of open coding it.
Module: wine Branch: master Commit: 40fdd834897395e51c356852a8f7a0bbc8727f78 URL: http://source.winehq.org/git/wine.git/?a=commit;h=40fdd834897395e51c356852a8... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Sep 27 09:50:25 2016 +0200 user32/tests: Use EqualRect() instead of open coding it. Signed-off-by: Michael Stefaniuc <mstefani(a)redhat.de> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/user32/tests/dce.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/user32/tests/dce.c b/dlls/user32/tests/dce.c index 0ee1283..6ba234e 100644 --- a/dlls/user32/tests/dce.c +++ b/dlls/user32/tests/dce.c @@ -335,10 +335,8 @@ static void test_dc_visrgn(void) GetClipBox( hdc, &parent_rect ); ReleaseDC( hwnd_parent, hdc ); - ok( rect.left == parent_rect.left, "rect.left = %d, expected %d\n", rect.left, parent_rect.left ); - ok( rect.top == parent_rect.top, "rect.top = %d, expected %d\n", rect.top, parent_rect.top ); - ok( rect.right == parent_rect.right, "rect.right = %d, expected %d\n", rect.right, parent_rect.right ); - ok( rect.bottom == parent_rect.bottom, "rect.bottom = %d, expected %d\n", rect.bottom, parent_rect.bottom ); + ok( EqualRect( &rect, &parent_rect ), "rect = %s, expected %s\n", wine_dbgstr_rect( &rect ), + wine_dbgstr_rect( &parent_rect )); }
participants (1)
-
Alexandre Julliard