[PATCH v7 1/2] riched20: Initialize style_list before ME_MakeFirstParagraph().

Jactry Zeng jzeng at codeweavers.com
Mon Aug 6 03:51:44 CDT 2018


Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
---
 dlls/riched20/editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 8020117fd2..12f1fa67c1 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -3047,6 +3047,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
   ed->pBuffer = ME_MakeText();
   ed->nZoomNumerator = ed->nZoomDenominator = 0;
   ed->nAvailWidth = 0; /* wrap to client area */
+  list_init( &ed->style_list );
   ME_MakeFirstParagraph(ed);
   /* The four cursors are for:
    * 0 - The position where the caret is shown
@@ -3146,7 +3147,6 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10)
 
   ed->wheel_remain = 0;
 
-  list_init( &ed->style_list );
   list_init( &ed->reobj_list );
   OleInitialize(NULL);
 
-- 
2.18.0





More information about the wine-devel mailing list