riched20: Avoid hardcoding the Unicode string literal lengths.

Francois Gouget fgouget at free.fr
Fri Dec 16 06:06:45 CST 2011


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

diff --git a/dlls/riched20/writer.c b/dlls/riched20/writer.c
index 45047bd..a5e5d50 100644
--- a/dlls/riched20/writer.c
+++ b/dlls/riched20/writer.c
@@ -927,7 +927,7 @@ static BOOL ME_StreamOutText(ME_TextEditor *editor, ME_OutStream *pStream,
 
     if (!editor->bEmulateVersion10 && cursor.pRun->member.run.nFlags & MERF_ENDPARA)
     {
-      static const WCHAR szEOL[2] = { '\r', '\n' };
+      static const WCHAR szEOL[] = { '\r', '\n' };
 
       /* richedit 2.0 - all line breaks are \r\n */
       if (dwFormat & SF_UNICODE)
-- 
1.7.7.3




More information about the wine-patches mailing list