[ros-diffs] [greatlrd] 20425: revert my last change to RtlClearAllBits for win32k do handle all case with NULL to it now.

greatlrd at svn.reactos.org greatlrd at svn.reactos.org
Thu Dec 29 16:15:00 CET 2005


revert my last change to RtlClearAllBits for win32k do handle all case
with NULL to it now.
Modified: trunk/reactos/lib/rtl/bitmap.c
  _____  

Modified: trunk/reactos/lib/rtl/bitmap.c
--- trunk/reactos/lib/rtl/bitmap.c	2005-12-29 14:15:36 UTC (rev
20424)
+++ trunk/reactos/lib/rtl/bitmap.c	2005-12-29 15:14:50 UTC (rev
20425)
@@ -125,15 +125,10 @@

 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);
+ 
 }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051229/bfb29655/attachment.html


More information about the Ros-diffs mailing list