From 5a9312445e4565a81d9dc4b01aaa0c650bbed363 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Wed, 20 Apr 2005 14:25:03 +0000 Subject: [PATCH] Fixed an error in my previous commit which caused an infinite loop in IE6 installer. --- dlls/riched20/editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 33eb9ecde71..5ed78429630 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -268,6 +268,7 @@ static LRESULT ME_StreamInText(ME_TextEditor *editor, DWORD dwFormat, ME_InStrea 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 *editor, DWORD format, EDITSTREAM *stre 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);