From 801f2e9f36aa6730da51b255797f20ea6816f0c2 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 20 Jan 2010 23:34:21 +0000 Subject: [PATCH] [RTL] Fix a bug in RtlFindNextForwardRunSet, that was returning the wrong bit position. Found by Amine Khaldi. svn path=/trunk/; revision=45167 --- reactos/lib/rtl/bitmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/bitmap.c b/reactos/lib/rtl/bitmap.c index 27328367d21..c0aef4f7a71 100644 --- a/reactos/lib/rtl/bitmap.c +++ b/reactos/lib/rtl/bitmap.c @@ -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);