mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 12:02:02 +00:00
[RTL]
Fix remainung RtlBitmapApi tests svn path=/trunk/; revision=56799
This commit is contained in:
parent
1e6ffd8f10
commit
fd6fcab2ca
1 changed files with 10 additions and 2 deletions
|
@ -450,10 +450,14 @@ RtlFindClearBits(
|
||||||
return MAXULONG;
|
return MAXULONG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check if the hint is outside the bitmap */
|
||||||
|
if (HintIndex >= BitMapHeader->SizeOfBitMap) HintIndex = 0;
|
||||||
|
|
||||||
/* Check for trivial case */
|
/* Check for trivial case */
|
||||||
if (NumberToFind == 0)
|
if (NumberToFind == 0)
|
||||||
{
|
{
|
||||||
return HintIndex;
|
/* Return hint rounded down to byte margin */
|
||||||
|
return HintIndex & ~7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* First margin is end of bitmap */
|
/* First margin is end of bitmap */
|
||||||
|
@ -514,10 +518,14 @@ RtlFindSetBits(
|
||||||
return MAXULONG;
|
return MAXULONG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Check if the hint is outside the bitmap */
|
||||||
|
if (HintIndex >= BitMapHeader->SizeOfBitMap) HintIndex = 0;
|
||||||
|
|
||||||
/* Check for trivial case */
|
/* Check for trivial case */
|
||||||
if (NumberToFind == 0)
|
if (NumberToFind == 0)
|
||||||
{
|
{
|
||||||
return HintIndex;
|
/* Return hint rounded down to byte margin */
|
||||||
|
return HintIndex & ~7;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* First margin is end of bitmap */
|
/* First margin is end of bitmap */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue