mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 04:14:53 +00:00
fix kernel32 codepage winetest
svn path=/trunk/; revision=38980
This commit is contained in:
parent
3240148b13
commit
e6d7f59aa5
1 changed files with 4 additions and 0 deletions
|
@ -493,7 +493,10 @@ IntMultiByteToWideCharCP(UINT CodePage,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MultiByteString < MbsEnd)
|
if (MultiByteString < MbsEnd)
|
||||||
|
{
|
||||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
return Count;
|
return Count;
|
||||||
}
|
}
|
||||||
|
@ -525,6 +528,7 @@ IntMultiByteToWideCharCP(UINT CodePage,
|
||||||
{
|
{
|
||||||
MultiByteCount = WideCharCount;
|
MultiByteCount = WideCharCount;
|
||||||
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
SetLastError(ERROR_INSUFFICIENT_BUFFER);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (TempLength = MultiByteCount;
|
for (TempLength = MultiByteCount;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue