Fix a bug in RtlFindNextForwardRunSet, that was returning the wrong bit position. Found by Amine Khaldi.

svn path=/trunk/; revision=45167
This commit is contained in:
Timo Kreuzer 2010-01-20 23:34:21 +00:00
parent 6519a78fee
commit 801f2e9f36

View file

@ -600,7 +600,7 @@ RtlFindNextForwardRunSet(
/* 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);