ASSERT parameter assumptions in EngCopyBits()

svn path=/trunk/; revision=12109
This commit is contained in:
Royce Mitchell III 2004-12-14 04:22:00 +00:00
parent be95834e02
commit 2e027c01b7

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: copybits.c,v 1.26 2004/07/14 20:48:57 navaraf Exp $ /* $Id: copybits.c,v 1.27 2004/12/14 04:22:00 royce Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -45,6 +45,8 @@ EngCopyBits(SURFOBJ *Dest,
BOOL EnumMore; BOOL EnumMore;
BLTINFO BltInfo; BLTINFO BltInfo;
ASSERT(Dest != NULL && Source != NULL && DestRect != NULL && SourcePoint != NULL);
MouseSafetyOnDrawStart(Source, SourcePoint->x, SourcePoint->y, MouseSafetyOnDrawStart(Source, SourcePoint->x, SourcePoint->y,
(SourcePoint->x + abs(DestRect->right - DestRect->left)), (SourcePoint->x + abs(DestRect->right - DestRect->left)),
(SourcePoint->y + abs(DestRect->bottom - DestRect->top))); (SourcePoint->y + abs(DestRect->bottom - DestRect->top)));