mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
One more assert added, but unfortunately it isn't triggered currently...
svn path=/trunk/; revision=14161
This commit is contained in:
parent
f60f345d30
commit
a392c38668
1 changed files with 1 additions and 2 deletions
|
@ -833,8 +833,7 @@ RtlSetBits(PRTL_BITMAP BitMapHeader,
|
||||||
if (StartingIndex >= Size || NumberToSet == 0)
|
if (StartingIndex >= Size || NumberToSet == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (StartingIndex + NumberToSet > Size)
|
ASSERT(StartingIndex + NumberToSet <= Size);
|
||||||
NumberToSet = Size - StartingIndex;
|
|
||||||
|
|
||||||
Ptr = (PULONG)BitMapHeader->Buffer + (StartingIndex / 32);
|
Ptr = (PULONG)BitMapHeader->Buffer + (StartingIndex / 32);
|
||||||
while (NumberToSet)
|
while (NumberToSet)
|
||||||
|
|
Loading…
Reference in a new issue