Alexandre Julliard : gdiplus/tests: Don' t test returned value if the call failed.

Alexandre Julliard julliard at winehq.org
Thu Jul 10 14:07:33 CDT 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jul 10 20:39:45 2008 +0200

gdiplus/tests: Don't test returned value if the call failed.

---

 dlls/gdiplus/tests/stringformat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/tests/stringformat.c b/dlls/gdiplus/tests/stringformat.c
index 919e1f7..3f112e0 100644
--- a/dlls/gdiplus/tests/stringformat.c
+++ b/dlls/gdiplus/tests/stringformat.c
@@ -64,7 +64,7 @@ todo_wine
     expect(Ok, stat);
     stat = GdipGetStringFormatMeasurableCharacterRangeCount(format, &count);
     expect(Ok, stat);
-    expect(3, count);
+    if (stat == Ok) expect(3, count);
 }
     stat= GdipDeleteStringFormat(format);
     expect(Ok, stat);




More information about the wine-cvs mailing list