From: Royce Mitchell III Date: Sat, 18 Dec 2004 17:52:30 +0000 (+0000) Subject: EngMaskBitBlt() ASSERT instead of if(), this function should trust it's callers X-Git-Tag: backups/ELF_support@12700~2^2~133 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=4bd03f70f7a8c5fc0c111e9c682e0d7c54df18ab;hp=6dce6332454b01ba660f409bbb245e67e0bffb7d EngMaskBitBlt() ASSERT instead of if(), this function should trust it's callers IntEngMaskBlt() trust caller to send required parameters svn path=/trunk/; revision=12188 --- diff --git a/reactos/subsys/win32k/eng/bitblt.c b/reactos/subsys/win32k/eng/bitblt.c index 7f2c7f9c440..8db2d236b29 100644 --- a/reactos/subsys/win32k/eng/bitblt.c +++ b/reactos/subsys/win32k/eng/bitblt.c @@ -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;