mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 00:12:55 +00:00
[SDK:RTL] Minimal formatting for NLS functions + Remove inadequate assert in RtlUpcaseUnicodeToOemN().
This commit is contained in:
parent
7416328523
commit
2ac49f0824
2 changed files with 9 additions and 9 deletions
|
@ -251,7 +251,9 @@ RtlMultiByteToUnicodeN(OUT PWCHAR UnicodeString,
|
|||
*ResultSize = Size * sizeof(WCHAR);
|
||||
|
||||
for (i = 0; i < Size; i++)
|
||||
{
|
||||
UnicodeString[i] = NlsAnsiToUnicodeTable[(UCHAR)MbString[i]];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -331,7 +333,7 @@ RtlMultiByteToUnicodeSize(OUT PULONG UnicodeSize,
|
|||
if (!NlsMbCodePageTag)
|
||||
{
|
||||
/* single-byte code page */
|
||||
*UnicodeSize = MbSize * sizeof (WCHAR);
|
||||
*UnicodeSize = MbSize * sizeof(WCHAR);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -535,8 +537,8 @@ RtlUnicodeToMultiByteN(OUT PCHAR MbString,
|
|||
if (!NlsMbCodePageTag)
|
||||
{
|
||||
/* single-byte code page */
|
||||
Size = (UnicodeSize > (MbSize * sizeof (WCHAR)))
|
||||
? MbSize : (UnicodeSize / sizeof (WCHAR));
|
||||
Size = (UnicodeSize > (MbSize * sizeof(WCHAR)))
|
||||
? MbSize : (UnicodeSize / sizeof(WCHAR));
|
||||
|
||||
if (ResultSize)
|
||||
*ResultSize = Size;
|
||||
|
@ -830,8 +832,6 @@ RtlUpcaseUnicodeToOemN(OUT PCHAR OemString,
|
|||
|
||||
PAGED_CODE_RTL();
|
||||
|
||||
ASSERT(NlsUnicodeToOemTable != NULL);
|
||||
|
||||
if (!NlsMbOemCodePageTag)
|
||||
{
|
||||
/* single-byte code page */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue