Author: akhaldi
Date: Mon Mar 9 17:53:20 2015
New Revision: 66622
URL:
http://svn.reactos.org/svn/reactos?rev=66622&view=rev
Log:
[KERNEL32] Sync GetStringTypeW() with Wine Staging 1.7.37. CORE-9246
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/…
==============================================================================
--- 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 Mar 9 17:53:20
2015
@@ -1255,6 +1255,11 @@
C2_OTHERNEUTRAL /* LRE, LRO, RLE, RLO, PDF */
};
+ if (!src) /* Abort and return FALSE when src is null */
+ {
+ SetLastError( ERROR_INVALID_PARAMETER );
+ return FALSE;
+ }
if (count == -1) count = strlenW(src) + 1;
switch(type)
{