mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[KERNEL32] Add check for Flags parameter.
* Fixes 124 tests for kernel32:WideCharToMultiByte svn path=/trunk/; revision=72840
This commit is contained in:
parent
d507b7555e
commit
0140e3bf68
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue