mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue