Ivan Semenoff <ivans77@mail.ru>
Fixed a bug in RtlClearBits (asserting if startingindex+count is more than size, instead of silently continuing processing).
Modified: trunk/reactos/lib/rtl/bitmap.c

Modified: trunk/reactos/lib/rtl/bitmap.c
--- trunk/reactos/lib/rtl/bitmap.c	2005-03-16 19:24:41 UTC (rev 14139)
+++ trunk/reactos/lib/rtl/bitmap.c	2005-03-16 19:27:45 UTC (rev 14140)
@@ -187,8 +187,7 @@
   if (StartingIndex >= Size || NumberToClear == 0)
     return;
 
-  if (StartingIndex + NumberToClear > Size)
-    NumberToClear = Size - StartingIndex;
+  ASSERT(StartingIndex + NumberToClear <= Size);
 
   Ptr = (PULONG)BitMapHeader->Buffer + (StartingIndex / 32);
   while (NumberToClear)