From 5bc272dbc35b8456fc93923cadcb77e25e451f73 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 22 Oct 2014 17:58:58 +0000 Subject: [PATCH] [KERNEL32] * Sync GetStringTypeW with Wine 1.7.27. * Allows more kernel32:locale tests to run. CORE-8540 svn path=/trunk/; revision=64897 --- reactos/dll/win32/kernel32/winnls/string/lang.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/dll/win32/kernel32/winnls/string/lang.c b/reactos/dll/win32/kernel32/winnls/string/lang.c index aef9faf4352..565962af246 100644 --- a/reactos/dll/win32/kernel32/winnls/string/lang.c +++ b/reactos/dll/win32/kernel32/winnls/string/lang.c @@ -1278,6 +1278,9 @@ BOOL WINAPI GetStringTypeW( DWORD type, LPCWSTR src, INT count, LPWORD chartype if ((c>=0x0600)&&(c<=0x06FF)) type3 |= C3_KASHIDA; if ((c>=0x3000)&&(c<=0x303F)) type3 |= C3_SYMBOL; + if ((c>=0xD800)&&(c<=0xDBFF)) type3 |= C3_HIGHSURROGATE; + if ((c>=0xDC00)&&(c<=0xDFFF)) type3 |= C3_LOWSURROGATE; + if ((c>=0xFF00)&&(c<=0xFF60)) type3 |= C3_FULLWIDTH; if ((c>=0xFF00)&&(c<=0xFF20)) type3 |= C3_SYMBOL; if ((c>=0xFF3B)&&(c<=0xFF40)) type3 |= C3_SYMBOL; -- 2.17.1