André Hentschel : gdi32/tests: Fix test on WinME.

Alexandre Julliard julliard at winehq.org
Mon Nov 29 13:38:45 CST 2010


Module: wine
Branch: master
Commit: 1f6f4329fdb54981ec85764bb6bb6d0f3ccf4e51
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1f6f4329fdb54981ec85764bb6bb6d0f3ccf4e51

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon Nov 29 17:52:56 2010 +0100

gdi32/tests: Fix test on WinME.

---

 dlls/gdi32/tests/dc.c |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/dlls/gdi32/tests/dc.c b/dlls/gdi32/tests/dc.c
index 5d56caa..cdfea10 100644
--- a/dlls/gdi32/tests/dc.c
+++ b/dlls/gdi32/tests/dc.c
@@ -528,12 +528,15 @@ static void test_boundsrect_invalid(void)
            "Expected GetBoundsRect to return 0, got %u\n", ret);
 
         ret = GetBoundsRect(hdc, &rect, 0);
-        ok(ret == DCB_RESET,
-           "Expected GetBoundsRect to return DCB_RESET, got %u\n", ret);
-        SetRect(&expect, 0, 0, 0, 0);
-        ok(EqualRect(&rect, &expect),
-           "Expected output rectangle (0,0)-(0,0), got (%d,%d)-(%d,%d)\n",
-           rect.left, rect.top, rect.right, rect.bottom);
+        if (ret != DCB_SET) /* WinME */
+        {
+            ok(ret == DCB_RESET,
+               "Expected GetBoundsRect to return DCB_RESET, got %u\n", ret);
+            SetRect(&expect, 0, 0, 0, 0);
+            ok(EqualRect(&rect, &expect),
+               "Expected output rectangle (0,0)-(0,0), got (%d,%d)-(%d,%d)\n",
+               rect.left, rect.top, rect.right, rect.bottom);
+       }
     }
 
     if (GetBoundsRect(hdc, NULL, 0) == DCB_RESET)




More information about the wine-cvs mailing list