Aric Stewart : usp10: Keep the levels array in more cases.

Alexandre Julliard julliard at winehq.org
Thu Nov 17 12:52:35 CST 2011


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

Author: Aric Stewart <aric at 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;




More information about the wine-cvs mailing list