Francois Gouget : riched20: Avoid hardcoding the Unicode string literal lengths.
Alexandre Julliard
julliard at winehq.org
Fri Dec 16 11:22:55 CST 2011
Module: wine
Branch: master
Commit: 8dd66bc927ba0ac3f4ce9745b90da372fce46185
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8dd66bc927ba0ac3f4ce9745b90da372fce46185
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Dec 16 13:06:45 2011 +0100
riched20: Avoid hardcoding the Unicode string literal lengths.
---
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)
More information about the wine-cvs
mailing list