Mike McCormack : riched20: Set the correct number of initialized cursors.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Nov 10 05:44:00 CST 2006


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

Author: Mike McCormack <mike at codeweavers.com>
Date:   Fri Nov 10 15:41:16 2006 +0900

riched20: Set the correct number of initialized cursors.

---

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

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index edc3180..d8fa7ae 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1116,7 +1116,7 @@ ME_TextEditor *ME_MakeEditor(HWND hWnd)
   ME_MakeFirstParagraph(hDC, ed->pBuffer);
   ReleaseDC(hWnd, hDC);
   ed->bCaretShown = FALSE;
-  ed->nCursors = 3;
+  ed->nCursors = 2;
   ed->pCursors = ALLOC_N_OBJ(ME_Cursor, ed->nCursors);
   ed->pCursors[0].pRun = ME_FindItemFwd(ed->pBuffer->pFirst, diRun);
   ed->pCursors[0].nOffset = 0;




More information about the wine-cvs mailing list