Module: wine Branch: master Commit: 0120e35a7d5ac2d13a052e664441f0b23d39645a URL: https://source.winehq.org/git/wine.git/?a=commit;h=0120e35a7d5ac2d13a052e664...
Author: Jactry Zeng jzeng@codeweavers.com Date: Mon Aug 20 22:03:40 2018 +0800
riched20: Initialize style_list before ME_MakeFirstParagraph().
Signed-off-by: Jactry Zeng jzeng@codeweavers.com Signed-off-by: Huw Davies huw@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
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 8020117..12f1fa6 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);