Eric Pouech : richedit: Initialize all the cursors at editor creation.

Alexandre Julliard julliard at winehq.org
Mon Jan 7 08:39:05 CST 2008


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

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Fri Jan  4 21:12:09 2008 +0100

richedit: Initialize all the cursors at editor creation.

---

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