dwrite: Always initialize output glyph count in GetGlyphs().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2e0ce5b8e7
commit
1b10b88d32
|
@ -1188,6 +1188,8 @@ static HRESULT WINAPI dwritetextanalyzer_GetGlyphs(IDWriteTextAnalyzer2 *iface,
|
||||||
context.glyph_infos = heap_calloc(glyph_count, sizeof(*context.glyph_infos));
|
context.glyph_infos = heap_calloc(glyph_count, sizeof(*context.glyph_infos));
|
||||||
context.table = &context.cache->gsub;
|
context.table = &context.cache->gsub;
|
||||||
|
|
||||||
|
*actual_glyph_count = 0;
|
||||||
|
|
||||||
scriptprops = &dwritescripts_properties[context.script];
|
scriptprops = &dwritescripts_properties[context.script];
|
||||||
hr = shape_get_glyphs(&context, scriptprops->scripttags);
|
hr = shape_get_glyphs(&context, scriptprops->scripttags);
|
||||||
if (SUCCEEDED(hr))
|
if (SUCCEEDED(hr))
|
||||||
|
|
Loading…
Reference in New Issue