mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
* Fixed a wrong pointer initialization in RtlClearBits.
svn path=/trunk/; revision=3708
This commit is contained in:
parent
3ec57dfda5
commit
811a27af00
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: bitmap.c,v 1.4 2002/09/08 10:23:41 chorns Exp $
|
/* $Id: bitmap.c,v 1.5 2002/11/05 20:52:38 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -136,7 +136,7 @@ RtlClearBits (
|
||||||
if (StartingIndex + NumberToClear > Size)
|
if (StartingIndex + NumberToClear > Size)
|
||||||
NumberToClear = Size - StartingIndex;
|
NumberToClear = Size - StartingIndex;
|
||||||
|
|
||||||
Ptr = (PCHAR)(BitMapHeader->Buffer + (StartingIndex / 8));
|
Ptr = (PCHAR)BitMapHeader->Buffer + (StartingIndex / 8);
|
||||||
while (NumberToClear)
|
while (NumberToClear)
|
||||||
{
|
{
|
||||||
/* bit shift in current byte */
|
/* bit shift in current byte */
|
||||||
|
|
Loading…
Reference in a new issue