Author: tkreuzer
Date: Thu Feb 16 14:37:53 2012
New Revision: 55633

URL: http://svn.reactos.org/svn/reactos?rev=55633&view=rev
Log:
[RTL]
Fix a bug I introduced in r55527

Modified:
    trunk/reactos/lib/rtl/unicode.c

Modified: trunk/reactos/lib/rtl/unicode.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/unicode.c?rev=55633&r1=55632&r2=55633&view=diff
==============================================================================
--- trunk/reactos/lib/rtl/unicode.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/unicode.c [iso-8859-1] Thu Feb 16 14:37:53 2012
@@ -2545,7 +2545,7 @@
     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)


Reply via email to