usp10: Keep the levels array in more cases.

This commit is contained in:
Aric Stewart 2011-11-17 09:40:16 -07:00 committed by Alexandre Julliard
parent 92f706cd74
commit 2c8fb3aba1
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int
for (i = 0; i < cInChars; i++) for (i = 0; i < cInChars; i++)
if (levels[i]!=levels[0]) if (levels[i]!=levels[0])
break; break;
if (i >= cInChars && !odd(baselevel)) if (i >= cInChars && !odd(baselevel) && !odd(psState->uBidiLevel))
{ {
heap_free(levels); heap_free(levels);
levels = NULL; levels = NULL;