From b483880367b9606eb32251f58dc6b7394f3e9a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 2 Jun 2013 22:44:09 +0000 Subject: [PATCH] [RTL] Clarify the code a bit, no logical changes. svn path=/trunk/; revision=59164 --- reactos/lib/rtl/unicode.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reactos/lib/rtl/unicode.c b/reactos/lib/rtl/unicode.c index 39006cd1ce8..46d0a38e060 100644 --- a/reactos/lib/rtl/unicode.c +++ b/reactos/lib/rtl/unicode.c @@ -875,24 +875,24 @@ NTAPI RtlPrefixUnicodeString( PCUNICODE_STRING String1, PCUNICODE_STRING String2, - BOOLEAN CaseInsensitive) + BOOLEAN CaseInsensitive) { PWCHAR pc1; PWCHAR pc2; - ULONG Length; + ULONG NumChars; if (String2->Length < String1->Length) return FALSE; - Length = String1->Length / 2; + NumChars = String1->Length / sizeof(WCHAR); pc1 = String1->Buffer; - pc2 = String2->Buffer; + pc2 = String2->Buffer; if (pc1 && pc2) { if (CaseInsensitive) { - while (Length--) + while (NumChars--) { if (RtlUpcaseUnicodeChar(*pc1++) != RtlUpcaseUnicodeChar(*pc2++)) @@ -901,9 +901,9 @@ RtlPrefixUnicodeString( } else { - while (Length--) + while (NumChars--) { - if( *pc1++ != *pc2++ ) + if (*pc1++ != *pc2++) return FALSE; } }