Module: wine Branch: master Commit: 0c5ebf42310ecf98a353331fdf01f0faca9da3bb URL: https://source.winehq.org/git/wine.git/?a=commit;h=0c5ebf42310ecf98a353331fd...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jun 8 14:17:29 2020 +0200
riched20: Fix potentially uninitialized variable compiler warnings.
Signed-off-by: Alexandre Julliard julliard@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;