revert my last change to RtlClearAllBits for win32k do handle all case with NULL...
authorMagnus Olsen <magnus@greatlord.com>
Thu, 29 Dec 2005 15:14:50 +0000 (15:14 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Thu, 29 Dec 2005 15:14:50 +0000 (15:14 +0000)
svn path=/trunk/; revision=20425

reactos/lib/rtl/bitmap.c

index 61fa957..113427a 100644 (file)
@@ -125,15 +125,10 @@ RtlAreBitsSet(PRTL_BITMAP BitMapHeader,
 VOID NTAPI
 RtlClearAllBits(IN OUT PRTL_BITMAP BitMapHeader)
 {
-   if (BitMapHeader != NULL)
-   { 
-     if (BitMapHeader->Buffer != NULL)
-     {
-        memset(BitMapHeader->Buffer,
-                  0x00,
-                  ROUND_UP(BitMapHeader->SizeOfBitMap, 8) / 8);
-     }
-   }
+     memset(BitMapHeader->Buffer,
+                0x00,
+                ROUND_UP(BitMapHeader->SizeOfBitMap, 8) / 8);
 }