Author: dchapyshev
Date: Wed Sep 28 19:53:43 2016
New Revision: 72840
URL:
http://svn.reactos.org/svn/reactos?rev=72840&view=rev
Log:
[KERNEL32] Add check for Flags parameter.
* Fixes 124 tests for kernel32:WideCharToMultiByte
Modified:
trunk/reactos/dll/win32/kernel32/winnls/string/nls.c
Modified: trunk/reactos/dll/win32/kernel32/winnls/string/nls.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/winnls/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/winnls/string/nls.c [iso-8859-1] Wed Sep 28 19:53:43
2016
@@ -754,6 +754,12 @@
{
INT TempLength;
DWORD Char;
+
+ if (Flags)
+ {
+ SetLastError(ERROR_INVALID_FLAGS);
+ return 0;
+ }
/* Does caller query for output buffer size? */
if (MultiByteCount == 0)