explorerframe/tests: Use EqualRect() instead of open coding it.

Michael Stefaniuc mstefani at redhat.de
Sat Jul 9 06:58:55 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/explorerframe/tests/nstc.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/explorerframe/tests/nstc.c b/dlls/explorerframe/tests/nstc.c
index 80be883..54365b0 100644
--- a/dlls/explorerframe/tests/nstc.c
+++ b/dlls/explorerframe/tests/nstc.c
@@ -1603,10 +1603,8 @@ static void test_basics(void)
 
             /* The NamespaceTreeControl returns screen coordinates. */
             MapWindowPoints(NULL, hwnd, (POINT*)&rc, 2);
-            ok(rc.left == tv_rc.left, "Differed, got %d and %d\n", rc.left, tv_rc.left);
-            ok(rc.top == tv_rc.top, "Differed, got %d and %d\n", rc.top, tv_rc.top);
-            ok(rc.right == tv_rc.right, "Differed, got %d and %d\n", rc.right, tv_rc.right);
-            ok(rc.bottom == tv_rc.bottom, "Differed, got %d and %d\n", rc.bottom, tv_rc.bottom);
+            ok(EqualRect(&rc, &tv_rc), "Differed, got %s and %s\n", wine_dbgstr_rect(&rc),
+               wine_dbgstr_rect(&tv_rc));
 
             /* Save the height and compare to that of other items.
                Observed values: 18, 19, 21 */
-- 
2.4.11



More information about the wine-patches mailing list