Nikolay Sivov : dwrite: Always initialize output glyph count in GetGlyphs().
Alexandre Julliard
julliard at winehq.org
Tue Feb 16 16:03:19 CST 2021
Module: wine
Branch: master
Commit: 1b10b88d32c65716d071bdb46d4a46cf8460cecd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=1b10b88d32c65716d071bdb46d4a46cf8460cecd
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Feb 16 14:54:10 2021 +0300
dwrite: Always initialize output glyph count in GetGlyphs().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/analyzer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c
index 53fb18df4c9..d0d769cb346 100644
--- a/dlls/dwrite/analyzer.c
+++ b/dlls/dwrite/analyzer.c
@@ -1188,6 +1188,8 @@ static HRESULT WINAPI dwritetextanalyzer_GetGlyphs(IDWriteTextAnalyzer2 *iface,
context.glyph_infos = heap_calloc(glyph_count, sizeof(*context.glyph_infos));
context.table = &context.cache->gsub;
+ *actual_glyph_count = 0;
+
scriptprops = &dwritescripts_properties[context.script];
hr = shape_get_glyphs(&context, scriptprops->scripttags);
if (SUCCEEDED(hr))
More information about the wine-cvs
mailing list