Commit 2e0ce5b8 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite/layout: Grow output buffer on GetGlyphs() failure.

parent 2655576b
...@@ -979,7 +979,7 @@ static HRESULT layout_shape_get_glyphs(struct dwrite_textlayout *layout, struct ...@@ -979,7 +979,7 @@ static HRESULT layout_shape_get_glyphs(struct dwrite_textlayout *layout, struct
heap_free(run->glyphs); heap_free(run->glyphs);
heap_free(context->glyph_props); heap_free(context->glyph_props);
max_count = run->glyphcount; max_count *= 2;
run->glyphs = heap_calloc(max_count, sizeof(*run->glyphs)); run->glyphs = heap_calloc(max_count, sizeof(*run->glyphs));
context->glyph_props = heap_calloc(max_count, sizeof(*context->glyph_props)); context->glyph_props = heap_calloc(max_count, sizeof(*context->glyph_props));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment