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

This commit is contained in:
Aric Stewart 2011-05-24 14:40:28 -05:00 committed by Alexandre Julliard
parent bcb98d11ba
commit 850336d936
1 changed files with 1 additions and 1 deletions

View File

@ -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);