[PATCH 2/4] [RichEdit]: initialize all the cursors at editor creation

Eric Pouech eric.pouech at orange.fr
Fri Jan 4 14:12:09 CST 2008




A+
---

 dlls/riched20/editor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index a9948b2..43c27d1 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1172,6 +1172,8 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd) {
   ed->pCursors[0].nOffset = 0;
   ed->pCursors[1].pRun = ME_FindItemFwd(ed->pBuffer->pFirst, diRun);
   ed->pCursors[1].nOffset = 0;
+  ed->pCursors[2] = ed->pCursors[0];
+  ed->pCursors[3] = ed->pCursors[1];
   ed->nLastTotalLength = ed->nTotalLength = 0;
   ed->nHeight = 0;
   ed->nUDArrowX = -1;





More information about the wine-patches mailing list