Eric Pouech : richedit: When inserting an OLE object from an RTF stream, don't force update as the stream is not fully read.

Alexandre Julliard julliard at winehq.org
Mon Nov 9 15:14:18 CST 2009


Module: wine
Branch: master
Commit: 38df8cfb048c55fe6545ec278f0fe3ff4c0b4c72
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=38df8cfb048c55fe6545ec278f0fe3ff4c0b4c72

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Sun Nov  8 15:04:53 2009 +0100

richedit: When inserting an OLE object from an RTF stream, don't force update as the stream is not fully read.

---

 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-cvs mailing list