Module: wine Branch: master Commit: 2c8fb3aba19cf82679abc5dde0fa3bcb31486760 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2c8fb3aba19cf82679abc5dde0...
Author: Aric Stewart aric@codeweavers.com Date: Thu Nov 17 09:40:16 2011 -0700
usp10: Keep the levels array in more cases.
---
dlls/usp10/usp10.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 05282a2..844f53c 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -851,7 +851,7 @@ HRESULT WINAPI ScriptItemizeOpenType(const WCHAR *pwcInChars, int cInChars, int for (i = 0; i < cInChars; i++) if (levels[i]!=levels[0]) break; - if (i >= cInChars && !odd(baselevel)) + if (i >= cInChars && !odd(baselevel) && !odd(psState->uBidiLevel)) { heap_free(levels); levels = NULL;