mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
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:
parent
6dce633245
commit
4bd03f70f7
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue