mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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;
|
INT TempLength;
|
||||||
DWORD Char;
|
DWORD Char;
|
||||||
|
|
||||||
|
if (Flags)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_FLAGS);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Does caller query for output buffer size? */
|
/* Does caller query for output buffer size? */
|
||||||
if (MultiByteCount == 0)
|
if (MultiByteCount == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue