riched20/tests: Use InflateRect() instead of open coding it.

Michael Stefaniuc mstefani at redhat.de
Fri Jul 1 03:36:17 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/riched20/tests/editor.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index 200ce53..fd5bcc4 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -7057,10 +7057,7 @@ static void test_format_rect(void)
     for (n = -3; n <= 3; n++)
     {
       rc = clientRect;
-      rc.top += n;
-      rc.left += n;
-      rc.bottom -= n;
-      rc.right -= n;
+      InflateRect(&rc, -n, -n);
       SendMessageA(hwnd, EM_SETRECT, 0, (LPARAM)&rc);
 
       expected = rc;
@@ -7206,10 +7203,7 @@ static void test_format_rect(void)
        expected.top, expected.left, expected.bottom, expected.right);
 
     rc = clientRect;
-    rc.top += 5;
-    rc.left += 5;
-    rc.bottom -= 5;
-    rc.right -= 5;
+    InflateRect(&rc, -5, -5);
     expected = rc;
     expected.top -= 1;
     expected.left -= 1;
-- 
2.4.11



More information about the wine-patches mailing list