From 0c5ebf42310ecf98a353331fdf01f0faca9da3bb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 8 Jun 2020 14:17:29 +0200 Subject: [PATCH] riched20: Fix potentially uninitialized variable compiler warnings. Signed-off-by: Alexandre Julliard --- dlls/riched20/editor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index c4a69027333..abc45920878 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -1143,6 +1143,8 @@ static HRESULT insert_static_object(ME_TextEditor *editor, HENHMETAFILE hemf, HB stgm.u.hBitmap = hbmp; fm.cfFormat = CF_BITMAP; } + else return E_FAIL; + stgm.pUnkForRelease = NULL; fm.ptd = NULL;