One more assert added, but unfortunately it isn't triggered currently...
Modified: trunk/reactos/lib/rtl/bitmap.c

Modified: trunk/reactos/lib/rtl/bitmap.c
--- trunk/reactos/lib/rtl/bitmap.c	2005-03-17 13:17:05 UTC (rev 14160)
+++ trunk/reactos/lib/rtl/bitmap.c	2005-03-17 16:09:12 UTC (rev 14161)
@@ -833,8 +833,7 @@
   if (StartingIndex >= Size || NumberToSet == 0)
     return;
 
-  if (StartingIndex + NumberToSet > Size)
-    NumberToSet = Size - StartingIndex;
+  ASSERT(StartingIndex + NumberToSet <= Size);
 
   Ptr = (PULONG)BitMapHeader->Buffer + (StartingIndex / 32);
   while (NumberToSet)