[PATCH 1/4] [RichEdit]: only copy the charset when it's defined

Eric Pouech eric.pouech at orange.fr
Fri Jan 4 14:12:03 CST 2008




A+
---

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

diff --git a/dlls/riched20/style.c b/dlls/riched20/style.c
index 91b8c36..453c15b 100644
--- a/dlls/riched20/style.c
+++ b/dlls/riched20/style.c
@@ -321,7 +321,8 @@ ME_LogFontFromStyle(ME_Context* c, LOGFONTW *lf, const ME_Style *s)
     lf->lfHeight = (lf->lfHeight*2)/3;
 /*lf.lfQuality = PROOF_QUALITY; */
   lf->lfPitchAndFamily = s->fmt.bPitchAndFamily;
-  lf->lfCharSet = s->fmt.bCharSet;
+  if (s->fmt.dwMask & CFM_CHARSET)
+    lf->lfCharSet = s->fmt.bCharSet;
 }
 
 void ME_CharFormatFromLogFont(HDC hDC, const LOGFONTW *lf, CHARFORMAT2W *fmt)





More information about the wine-patches mailing list