[Wine-patches] winhlp32: Use charset from TranslateCharsetInfo results (eterbug #108)

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Чт Апр 16 17:37:17 MSD 2009


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 1eedd807fc267af2f2fafb0de06935a861230e6d Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Thu, 16 Apr 2009 17:32:50 +0400
Subject: [PATCH] winhlp32: Use charset from TranslateCharsetInfo results (eterbug #108)

---
 programs/winhlp32/hlpfile.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/programs/winhlp32/hlpfile.c b/programs/winhlp32/hlpfile.c
index d9bdc7e..a88a438 100644
--- a/programs/winhlp32/hlpfile.c
+++ b/programs/winhlp32/hlpfile.c
@@ -28,6 +28,7 @@
 #include "winbase.h"
 #include "wingdi.h"
 #include "winuser.h"
+#include "winnls.h"
 #include "winhelp.h"
 
 #include "wine/debug.h"
@@ -1744,6 +1745,12 @@ static BOOL HLPFILE_ReadFont(HLPFILE* hlpfile)
     unsigned    i, len, idx;
     unsigned    face_num, dscr_num, face_offset, dscr_offset;
     BYTE        flag, family;
+    CHARSETINFO ci;
+
+    if (hlpfile->charset == ANSI_CHARSET) {
+        TranslateCharsetInfo((VOID*)GetACP(), &ci ,TCI_SRCCODEPAGE);
+        hlpfile->charset = ci.ciCharset;
+    }
 
     if (!HLPFILE_FindSubFile(hlpfile, "|FONT", &ref, &end))
     {
-- 
1.6.1.3.GIT



Подробная информация о списке рассылки Wine-patches