[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

@ -101,7 +101,7 @@ RtlAnsiStringToUnicodeString(
if (NlsMbCodePageTag == FALSE)
{
Length = AnsiSource->Length * 2 + sizeof(WCHAR);
Length = (AnsiSource->Length + 1) * sizeof(WCHAR);
}
else
{
@ -2236,7 +2236,7 @@ RtlCopyString(
PCHAR p1, p2;
/* Check if there was no source given */
if(!SourceString)
if (!SourceString)
{
/* Simply return an empty string */
DestinationString->Length = 0;
@ -2275,7 +2275,7 @@ RtlCopyUnicodeString(
{
ULONG SourceLength;
if(SourceString == NULL)
if (!SourceString)
{
DestinationString->Length = 0;
}
@ -2431,7 +2431,7 @@ RtlAppendUnicodeToString(IN OUT PUNICODE_STRING Destination,
Destination->Length += Length;
/* append terminating '\0' if enough space */
if(Destination->MaximumLength > Destination->Length)
if (Destination->MaximumLength > Destination->Length)
{
DestBuffer[Length / sizeof(WCHAR)] = UNICODE_NULL;
}