RICHED20: Fix for plain text EM_STREAMIN

Phil Krylov phil at newstar.rinet.ru
Wed Apr 20 07:23:18 CDT 2005


ChangeLog:

Fixed an error in my previous commit which caused an infinite loop in IE6
installer.

Patch:

Index: dlls/riched20/editor.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/editor.c,v
retrieving revision 1.24
diff -p -u -r1.24 editor.c
--- dlls/riched20/editor.c	16 Apr 2005 10:48:35 -0000	1.24
+++ dlls/riched20/editor.c	20 Apr 2005 12:05:02 -0000
@@ -268,6 +268,7 @@ static LRESULT ME_StreamInText(ME_TextEd
     ME_InsertTextFromCursor(editor, 0, pText, nWideChars, style);
     if (stream->dwSize < STREAMIN_BUFFER_SIZE)
       break;
+    stream->dwSize = 0;
   } while(1);
   ME_CommitUndo(editor);
   ME_Repaint(editor);
@@ -485,7 +486,7 @@ static LRESULT ME_StreamIn(ME_TextEditor
   int nEventMask = editor->nEventMask;
   ME_InStream inStream;
 
-  TRACE("%p %p\n", stream, editor->hWnd);
+  TRACE("stream==%p hWnd==%p format==0x%X\n", stream, editor->hWnd, (UINT)format);
   editor->nEventMask = 0;
   
   ME_GetSelection(editor, &from, &to);



More information about the wine-patches mailing list