[1/2] richedit: Added missing initialization of nAvailWidth for ME_TextEditor. (RESEND)

Dylan Smith dylan.ah.smith at gmail.com
Tue Feb 24 01:56:12 CST 2009


(created this patch series to show the dependency between two of my patches)
---
 dlls/riched20/editor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
-------------- next part --------------
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;


More information about the wine-patches mailing list