Author: tkreuzer Date: Thu Jan 21 00:34:21 2010 New Revision: 45167
URL: http://svn.reactos.org/svn/reactos?rev=45167&view=rev Log: [RTL] Fix a bug in RtlFindNextForwardRunSet, that was returning the wrong bit position. Found by Amine Khaldi.
Modified: trunk/reactos/lib/rtl/bitmap.c
Modified: trunk/reactos/lib/rtl/bitmap.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/bitmap.c?rev=45167&... ============================================================================== --- trunk/reactos/lib/rtl/bitmap.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/bitmap.c [iso-8859-1] Thu Jan 21 00:34:21 2010 @@ -600,7 +600,7 @@
/* Assume a clear run first, count it's length */ Length = RtlpGetLengthOfRunClear(BitMapHeader, FromIndex, MAXULONG); - *StartingRunIndex = FromIndex; + *StartingRunIndex = FromIndex + Length;
/* Now return the length of the run */ return RtlpGetLengthOfRunSet(BitMapHeader, FromIndex, MAXULONG);