gdi32: Revert incorrect fix introduced in a5d288f08c08dc19d217093fdf8622605c92a4e0

Dmitry Timoshkov dmitry at codeweavers.com
Thu Oct 9 00:30:00 CDT 2008


the real fix has been provided in 41aad2dce28ca0dd9d23fa6234ad8523302d6054.

This patch fixes the test failure with symbol.ttf present reported
by Jeremy White.

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

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 8807dcc..5d30bfc 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3437,7 +3437,7 @@ GdiFont *WineEngCreateFontInstance(DC *dc, HFONT hfont)
 
     /* If requested charset was DEFAULT_CHARSET then try using charset
        corresponding to the current ansi codepage */
-    if (!csi.fs.fsCsb[0] || lf.lfWeight == FW_DONTCARE)
+    if (!csi.fs.fsCsb[0])
     {
         INT acp = GetACP();
         if(!TranslateCharsetInfo((DWORD*)(INT_PTR)acp, &csi, TCI_SRCCODEPAGE)) {
-- 
1.6.0.2




More information about the wine-patches mailing list