EngMaskBitBlt() ASSERT instead of if(), this function should trust it's callers
authorRoyce Mitchell III <royce3@ev1.net>
Sat, 18 Dec 2004 17:52:30 +0000 (17:52 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Sat, 18 Dec 2004 17:52:30 +0000 (17:52 +0000)
IntEngMaskBlt() trust caller to send required parameters

svn path=/trunk/; revision=12188

reactos/subsys/win32k/eng/bitblt.c

index 7f2c7f9..8db2d23 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: bitblt.c,v 1.65 2004/12/18 17:36:13 royce Exp $
+/* $Id: bitblt.c,v 1.66 2004/12/18 17:52:30 royce Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -901,8 +901,7 @@ EngMaskBitBlt(SURFOBJ *DestObj,
   ULONG              Direction;
   POINTL             AdjustedBrushOrigin;
 
-  if ( NULL == Mask )
-    return FALSE;
+  ASSERT ( Mask );
 
   if (NULL != SourcePoint)
     {
@@ -1095,6 +1094,8 @@ IntEngMaskBlt(SURFOBJ *DestObj,
   RECTL OutputRect;
   POINTL InputPoint;
 
+  ASSERT(Mask);
+
   if (NULL != SourcePoint)
     {
       InputPoint = *SourcePoint;