Commit 90191451 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

dwrite/tests: Fully initialize call sequence test data (Coverity).

parent e9c1f811
...@@ -617,7 +617,7 @@ static HRESULT WINAPI testrenderer_DrawUnderline(IDWriteTextRenderer *iface, ...@@ -617,7 +617,7 @@ static HRESULT WINAPI testrenderer_DrawUnderline(IDWriteTextRenderer *iface,
IUnknown *effect) IUnknown *effect)
{ {
struct renderer_context *ctxt = (struct renderer_context*)context; struct renderer_context *ctxt = (struct renderer_context*)context;
struct drawcall_entry entry; struct drawcall_entry entry = { 0 };
if (ctxt) if (ctxt)
TEST_MEASURING_MODE(ctxt, underline->measuringMode); TEST_MEASURING_MODE(ctxt, underline->measuringMode);
...@@ -656,7 +656,7 @@ static HRESULT WINAPI testrenderer_DrawStrikethrough(IDWriteTextRenderer *iface, ...@@ -656,7 +656,7 @@ static HRESULT WINAPI testrenderer_DrawStrikethrough(IDWriteTextRenderer *iface,
IUnknown *effect) IUnknown *effect)
{ {
struct renderer_context *ctxt = (struct renderer_context*)context; struct renderer_context *ctxt = (struct renderer_context*)context;
struct drawcall_entry entry; struct drawcall_entry entry = { 0 };
if (ctxt) if (ctxt)
TEST_MEASURING_MODE(ctxt, strikethrough->measuringMode); TEST_MEASURING_MODE(ctxt, strikethrough->measuringMode);
...@@ -677,7 +677,7 @@ static HRESULT WINAPI testrenderer_DrawInlineObject(IDWriteTextRenderer *iface, ...@@ -677,7 +677,7 @@ static HRESULT WINAPI testrenderer_DrawInlineObject(IDWriteTextRenderer *iface,
BOOL is_rtl, BOOL is_rtl,
IUnknown *effect) IUnknown *effect)
{ {
struct drawcall_entry entry; struct drawcall_entry entry = { 0 };
entry.kind = DRAW_INLINE; entry.kind = DRAW_INLINE;
if (effect) if (effect)
entry.kind |= DRAW_EFFECT; entry.kind |= DRAW_EFFECT;
......
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