From bd3f5b9708b0756e56940794a3ee72a8b89d74f1 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 16 Feb 2012 14:37:53 +0000 Subject: [PATCH] [RTL] Fix a bug I introduced in r55527 svn path=/trunk/; revision=55633 --- reactos/lib/rtl/unicode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/unicode.c b/reactos/lib/rtl/unicode.c index 16eb6112791..2e73272a354 100644 --- a/reactos/lib/rtl/unicode.c +++ b/reactos/lib/rtl/unicode.c @@ -2545,7 +2545,7 @@ RtlFindCharInUnicodeString( Length = SearchString->Length / sizeof(WCHAR); if (Flags & RTL_FIND_CHAR_IN_UNICODE_STRING_START_AT_END) { - for (i = Length - 1; i >= 0; i--) + for (i = Length - 1; (SHORT)i >= 0; i--) { Found = RtlpIsCharInUnicodeString(SearchString->Buffer[i], MatchString, CaseInSensitive); if (Found == WantToFind)