dwrite/shape: Fully initialize shaping context when getting glyph positions (Valgrind).

Actual issue is uninitialized has_gpos_attachment flag, it might be harmless in practice
but it's better to avoid.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-03-24 19:15:08 +01:00 committed by Alexandre Julliard
parent 5ce5dc1f1e
commit 967f3a5074

View file

@ -1592,7 +1592,7 @@ static HRESULT WINAPI dwritetextanalyzer_GetGlyphPlacements(IDWriteTextAnalyzer2
UINT32 const* feature_range_lengths, UINT32 feature_ranges, float *advances, DWRITE_GLYPH_OFFSET *offsets)
{
const struct dwritescript_properties *scriptprops;
struct scriptshaping_context context;
struct scriptshaping_context context = { 0 };
struct dwrite_fontface *font_obj;
unsigned int i;
HRESULT hr;
@ -1666,7 +1666,7 @@ static HRESULT WINAPI dwritetextanalyzer_GetGdiCompatibleGlyphPlacements(IDWrite
UINT32 const* feature_range_lengths, UINT32 feature_ranges, float *advances, DWRITE_GLYPH_OFFSET *offsets)
{
const struct dwritescript_properties *scriptprops;
struct scriptshaping_context context;
struct scriptshaping_context context = { 0 };
DWRITE_MEASURING_MODE measuring_mode;
struct dwrite_fontface *font_obj;
unsigned int i;