Alexandre Julliard : riched20: Fix potentially uninitialized variable compiler warnings.

Alexandre Julliard julliard at winehq.org
Mon Jun 8 15:19:55 CDT 2020


Module: wine
Branch: master
Commit: 0c5ebf42310ecf98a353331fdf01f0faca9da3bb
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=0c5ebf42310ecf98a353331fdf01f0faca9da3bb

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jun  8 14:17:29 2020 +0200

riched20: Fix potentially uninitialized variable compiler warnings.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/riched20/editor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index c4a6902733..abc4592087 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;




More information about the wine-cvs mailing list