Aric Stewart : usp10/test: Make sure to only trace on _test_shape_ok number of glyphs if font is not valid .

Alexandre Julliard julliard at winehq.org
Wed May 25 11:28:14 CDT 2011


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

Author: Aric Stewart <aric at codeweavers.com>
Date:   Tue May 24 14:40:28 2011 -0500

usp10/test: Make sure to only trace on _test_shape_ok number of glyphs if font is not valid.

---

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

diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c
index ac78514..742dbec 100644
--- a/dlls/usp10/tests/usp10.c
+++ b/dlls/usp10/tests/usp10.c
@@ -367,7 +367,7 @@ static inline void _test_shape_ok(int valid, HDC hdc, LPCWSTR string,
             winetest_trace("%i: invalid fCanGlyphAlone\n",x);
     }
 
-    if(valid)
+    if (valid > 0)
         winetest_ok(nGlyphs == outnGlyphs, "got incorrect number of glyphs (%i)\n",outnGlyphs);
     else if (nGlyphs != outnGlyphs)
         winetest_trace("got incorrect number of glyphs (%i)\n",outnGlyphs);




More information about the wine-cvs mailing list