[PATCH] dwrite: Silence warning for name entries with platform 1/encoding 20.

Aurélien Inacio aur36 at mailo.com
Thu Sep 2 16:27:38 CDT 2021


Signed-off-by: Aurélien Inacio <aur36 at mailo.com>
---
 dlls/gdi32/opentype.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/gdi32/opentype.c b/dlls/gdi32/opentype.c
index 10234c6d5aa..a1017def5b6 100644
--- a/dlls/gdi32/opentype.c
+++ b/dlls/gdi32/opentype.c
@@ -323,6 +323,8 @@ static UINT get_name_record_codepage( enum OPENTYPE_PLATFORM_ID platform, USHORT
     case OPENTYPE_PLATFORM_MAC:
         switch (encoding)
         {
+        case TT_NAME_MAC_ENCODING_KHMER:
+            return 0;
         case TT_NAME_MAC_ENCODING_ROMAN:
             return 10000;
         case TT_NAME_MAC_ENCODING_JAPANESE:
-- 
2.30.2






More information about the wine-devel mailing list