EngMaskBitBlt() ASSERT instead of if(), this function should trust it's callers

IntEngMaskBlt() trust caller to send required parameters

svn path=/trunk/; revision=12188
This commit is contained in:
Royce Mitchell III 2004-12-18 17:52:30 +00:00
parent 6dce633245
commit 4bd03f70f7

View 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;