mirror of
https://github.com/reactos/reactos.git
synced 2025-03-30 17:10:22 +00:00
Ivan Semenoff <ivans77@mail.ru>
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:
parent
4d47498931
commit
31046fef6e
1 changed files with 1 additions and 2 deletions
|
@ -187,8 +187,7 @@ RtlClearBits(PRTL_BITMAP BitMapHeader,
|
||||||
if (StartingIndex >= Size || NumberToClear == 0)
|
if (StartingIndex >= Size || NumberToClear == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (StartingIndex + NumberToClear > Size)
|
ASSERT(StartingIndex + NumberToClear <= Size);
|
||||||
NumberToClear = Size - StartingIndex;
|
|
||||||
|
|
||||||
Ptr = (PULONG)BitMapHeader->Buffer + (StartingIndex / 32);
|
Ptr = (PULONG)BitMapHeader->Buffer + (StartingIndex / 32);
|
||||||
while (NumberToClear)
|
while (NumberToClear)
|
||||||
|
|
Loading…
Reference in a new issue