[KERNEL32] Add check for Flags parameter.

* Fixes 124 tests for kernel32:WideCharToMultiByte

svn path=/trunk/; revision=72840
This commit is contained in:
Dmitry Chapyshev 2016-09-28 19:53:43 +00:00
parent d507b7555e
commit 0140e3bf68

View file

@ -755,6 +755,12 @@ IntWideCharToMultiByteUTF8(UINT CodePage,
INT TempLength;
DWORD Char;
if (Flags)
{
SetLastError(ERROR_INVALID_FLAGS);
return 0;
}
/* Does caller query for output buffer size? */
if (MultiByteCount == 0)
{