mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Ivan Semenoff <[email protected]>
Fixed a bug in RtlClearBits (asserting if startingindex+count is more than size, instead of silently continuing processing). svn path=/trunk/; revision=14140
This commit is contained in:
@@ -187,8 +187,7 @@ RtlClearBits(PRTL_BITMAP BitMapHeader,
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user