Author: dchapyshev Date: Mon Sep 19 10:11:19 2016 New Revision: 72739
URL: http://svn.reactos.org/svn/reactos?rev=72739&view=rev Log: [KERNEL32] Sync GetStringTypeW with Wine
* Fixes 255 tests for kernel32:locale
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/lang.c
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/lang.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/s... ============================================================================== --- trunk/reactos/dll/win32/kernel32/winnls/string/lang.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/kernel32/winnls/string/lang.c [iso-8859-1] Mon Sep 19 10:11:19 2016 @@ -1255,11 +1255,12 @@ C2_OTHERNEUTRAL /* LRE, LRO, RLE, RLO, PDF */ };
- if (!src) /* Abort and return FALSE when src is null */ + if (!src) { SetLastError( ERROR_INVALID_PARAMETER ); return FALSE; } + if (count == -1) count = strlenW(src) + 1; switch(type) { @@ -1284,7 +1285,7 @@ if ((c>=0x30A0)&&(c<=0x30FF)) type3 |= C3_KATAKANA; if ((c>=0x3040)&&(c<=0x309F)) type3 |= C3_HIRAGANA; if ((c>=0x4E00)&&(c<=0x9FAF)) type3 |= C3_IDEOGRAPH; - if ((c>=0x0600)&&(c<=0x06FF)) type3 |= C3_KASHIDA; + if (c == 0x0640) type3 |= C3_KASHIDA; if ((c>=0x3000)&&(c<=0x303F)) type3 |= C3_SYMBOL;
if ((c>=0xD800)&&(c<=0xDBFF)) type3 |= C3_HIGHSURROGATE;