[SDK:RTL] Minimal formatting for NLS functions + Remove inadequate assert in RtlUpcaseUnicodeToOemN().

This commit is contained in:
Hermès Bélusca-Maïto 2022-03-21 21:06:07 +01:00
parent 7416328523
commit 2ac49f0824
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 9 additions and 9 deletions

View file

@ -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 */