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;