Michael Stefaniuc : gdi32/tests: Compare RECTs with EqualRect instead of memcmp.
Alexandre Julliard
julliard at winehq.org
Mon Jun 20 10:29:51 CDT 2016
Module: wine
Branch: master
Commit: 27f80dab77ce5f80b53029b9bafe18fe4ce3ff90
URL: http://source.winehq.org/git/wine.git/?a=commit;h=27f80dab77ce5f80b53029b9bafe18fe4ce3ff90
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Jun 17 17:23:25 2016 +0200
gdi32/tests: Compare RECTs with EqualRect instead of memcmp.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdi32/tests/dib.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/gdi32/tests/dib.c b/dlls/gdi32/tests/dib.c
index 693df4a..a5ec539 100644
--- a/dlls/gdi32/tests/dib.c
+++ b/dlls/gdi32/tests/dib.c
@@ -1275,10 +1275,8 @@ static void compare_bounds( HDC hdc, const char *info )
return;
}
- ok( !memcmp( current_bounds, &rect, sizeof(RECT) ),
- "%s: %s: expected bounds %d,%d,%d,%d got %d,%d,%d,%d\n", dst_format, info,
- current_bounds->left, current_bounds->top, current_bounds->right, current_bounds->bottom,
- rect.left, rect.top, rect.right, rect.bottom );
+ ok( EqualRect( current_bounds, &rect ), "%s: %s: expected bounds %s got %s\n", dst_format, info,
+ wine_dbgstr_rect( current_bounds ), wine_dbgstr_rect( &rect ));
current_bounds++;
}
More information about the wine-cvs
mailing list