diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index 0014b1ca447..d68b515a372 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -1696,7 +1696,8 @@ static void test_ScriptShape(HDC hdc) for (i = 0; i < 2; i++) { static const WCHAR space[] = {' ', 0}; - static const WCHAR blanks[] = {'\t', '\r', '\n', 0x001C, 0x001D, 0x001E, 0x001F,0}; + static const WCHAR blanks[] = {'\t', '\r', '\n', 0x001c, 0x001d, 0x001e, 0x001f, 0x200e, 0x200f, /* LRM, RLM */ + 0x202a, 0x202b, 0x202c, 0x202d, 0x202e, 0}; /* LRE, RLE, PDF, LRO, RLO */ HFONT font, oldfont = NULL; LOGFONTA lf; diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 07c21758c1e..7038e8c1acd 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -3177,8 +3177,7 @@ HRESULT WINAPI ScriptShapeOpenType( HDC hdc, SCRIPT_CACHE *psc, pwOutGlyphs[i] = pwcChars[idx]; /* overwrite some basic control glyphs to blank */ - if (psa && !psa->fNoGlyphIndex && psa->eScript == Script_Control && - pwcChars[idx] < ((ScriptCache *)*psc)->tm.tmFirstChar) + if (psa && !psa->fNoGlyphIndex && psa->eScript == Script_Control) { if (pwcChars[idx] == 0x0009 || pwcChars[idx] == 0x000A || pwcChars[idx] == 0x000D || pwcChars[idx] >= 0x001C)