Module: wine Branch: master Commit: b9b9835f9368c83e15451e04c8e0781012ac4a2f URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9b9835f9368c83e15451e04c8...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Tue Feb 24 02:37:03 2009 -0500
richedit: Added missing initialization of nAvailWidth for ME_TextEditor.
---
dlls/riched20/editor.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 2a053d7..e73679e 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -2635,6 +2635,7 @@ ME_TextEditor *ME_MakeEditor(ITextHost *texthost, BOOL bEmulateVersion10) ed->nParagraphs = 1; ed->nLastSelStart = ed->nLastSelEnd = 0; ed->pLastSelStartPara = ed->pLastSelEndPara = ME_FindItemFwd(ed->pBuffer->pFirst, diParagraph); + ed->nAvailWidth = 0; /* wrap to client area */ ed->bWordWrap = (props & TXTBIT_WORDWRAP) != 0; ed->bHideSelection = FALSE; ed->pfnWordBreak = NULL;