mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
some case from win32k can call to RtlClearAllBits with NULL pointer. and check for null pointer after RtlClearAllBits. This take care of those case for moment.
svn path=/trunk/; revision=20421
This commit is contained in:
@@ -125,9 +125,15 @@ RtlAreBitsSet(PRTL_BITMAP BitMapHeader,
|
||||
VOID NTAPI
|
||||
RtlClearAllBits(IN OUT PRTL_BITMAP BitMapHeader)
|
||||
{
|
||||
memset(BitMapHeader->Buffer,
|
||||
0x00,
|
||||
ROUND_UP(BitMapHeader->SizeOfBitMap, 8) / 8);
|
||||
if (BitMapHeader != NULL)
|
||||
{
|
||||
if (BitMapHeader->Buffer != NULL)
|
||||
{
|
||||
memset(BitMapHeader->Buffer,
|
||||
0x00,
|
||||
ROUND_UP(BitMapHeader->SizeOfBitMap, 8) / 8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user