[PATCH 2/3] [RichEdit]: when inserting an OLE object from an RTF stream, don't force update as the stream is not fully read
Eric Pouech
eric.pouech at orange.fr
Sun Nov 8 08:04:53 CST 2009
(fix for 14284)
A+
---
dlls/riched20/editor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index b5ad21c..4bc901e 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1149,8 +1149,8 @@ static BOOL ME_RTFInsertOleObject(RTF_Info *info, HENHMETAFILE hemf, HBITMAP hbm
reobject.dwFlags = 0; /* FIXME */
reobject.dwUser = 0;
- /* FIXME: could be simpler */
- ret = IRichEditOle_InsertObject(info->lpRichEditOle, &reobject) == S_OK;
+ ME_InsertOLEFromCursor(info->editor, &reobject, 0);
+ ret = TRUE;
}
if (lpObject) IOleObject_Release(lpObject);
More information about the wine-patches
mailing list