dwrite: Make sure explicit levels are always initialized (Valgrind)

Nikolay Sivov nsivov at codeweavers.com
Tue Jul 14 02:55:23 CDT 2015


---
-------------- next part --------------
From 6d284c4ef929954622a7020fad65d6aa6f1fd419 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue, 14 Jul 2015 10:54:17 +0300
Subject: [PATCH] dwrite: Make sure explicit levels are always initialized
 (Valgrind)

---
 dlls/dwrite/bidi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/dwrite/bidi.c b/dlls/dwrite/bidi.c
index 69eae5a..273d100 100644
--- a/dlls/dwrite/bidi.c
+++ b/dlls/dwrite/bidi.c
@@ -445,8 +445,9 @@ static void bidi_resolve_explicit(UINT8 baselevel, UINT8 *classes, UINT8 *levels
                 pop_stack();
             break;
 
-        /* X8: Nothing */
+        /* X8 */
         default:
+            levels[i] = baselevel;
             break;
         }
     }
-- 
2.1.4



More information about the wine-patches mailing list