mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:45:42 +00:00
[RTL]
Clarify the code a bit, no logical changes. svn path=/trunk/; revision=59164
This commit is contained in:
parent
3326a5b566
commit
b483880367
1 changed files with 7 additions and 7 deletions
|
@ -879,12 +879,12 @@ RtlPrefixUnicodeString(
|
||||||
{
|
{
|
||||||
PWCHAR pc1;
|
PWCHAR pc1;
|
||||||
PWCHAR pc2;
|
PWCHAR pc2;
|
||||||
ULONG Length;
|
ULONG NumChars;
|
||||||
|
|
||||||
if (String2->Length < String1->Length)
|
if (String2->Length < String1->Length)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
Length = String1->Length / 2;
|
NumChars = String1->Length / sizeof(WCHAR);
|
||||||
pc1 = String1->Buffer;
|
pc1 = String1->Buffer;
|
||||||
pc2 = String2->Buffer;
|
pc2 = String2->Buffer;
|
||||||
|
|
||||||
|
@ -892,7 +892,7 @@ RtlPrefixUnicodeString(
|
||||||
{
|
{
|
||||||
if (CaseInsensitive)
|
if (CaseInsensitive)
|
||||||
{
|
{
|
||||||
while (Length--)
|
while (NumChars--)
|
||||||
{
|
{
|
||||||
if (RtlUpcaseUnicodeChar(*pc1++) !=
|
if (RtlUpcaseUnicodeChar(*pc1++) !=
|
||||||
RtlUpcaseUnicodeChar(*pc2++))
|
RtlUpcaseUnicodeChar(*pc2++))
|
||||||
|
@ -901,7 +901,7 @@ RtlPrefixUnicodeString(
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
while (Length--)
|
while (NumChars--)
|
||||||
{
|
{
|
||||||
if (*pc1++ != *pc2++)
|
if (*pc1++ != *pc2++)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue