Signed-off-by: Henri Verbeet hverbeet@codeweavers.com --- dlls/usp10/bidi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/usp10/bidi.c b/dlls/usp10/bidi.c index b0df781c82a..0fb03ef061a 100644 --- a/dlls/usp10/bidi.c +++ b/dlls/usp10/bidi.c @@ -998,7 +998,7 @@ static void computeIsolatingRunsSet(unsigned baselevel, WORD *pcls, const WORD * Run *runs; IsolatedRun *current_isolated;
- if (!(runs = heap_alloc(uCount * sizeof(*runs)))) + if (!(runs = heap_calloc(uCount, sizeof(*runs)))) return;
list_init(set);
Signed-off-by: Aric Stewart aric@codeweavers.com
On 3/26/18 4:30 AM, Henri Verbeet wrote:
Signed-off-by: Henri Verbeet hverbeet@codeweavers.com
dlls/usp10/bidi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/usp10/bidi.c b/dlls/usp10/bidi.c index b0df781c82a..0fb03ef061a 100644 --- a/dlls/usp10/bidi.c +++ b/dlls/usp10/bidi.c @@ -998,7 +998,7 @@ static void computeIsolatingRunsSet(unsigned baselevel, WORD *pcls, const WORD * Run *runs; IsolatedRun *current_isolated;
- if (!(runs = heap_alloc(uCount * sizeof(*runs))))
if (!(runs = heap_calloc(uCount, sizeof(*runs)))) return;
list_init(set);