From 2e027c01b7eb5a519bc525a68526a5b528e7cb9f Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Tue, 14 Dec 2004 04:22:00 +0000 Subject: [PATCH] ASSERT parameter assumptions in EngCopyBits() svn path=/trunk/; revision=12109 --- reactos/subsys/win32k/eng/copybits.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/eng/copybits.c b/reactos/subsys/win32k/eng/copybits.c index c055c054c16..e0432dc0837 100644 --- a/reactos/subsys/win32k/eng/copybits.c +++ b/reactos/subsys/win32k/eng/copybits.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: 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 * PROJECT: ReactOS kernel @@ -45,6 +45,8 @@ EngCopyBits(SURFOBJ *Dest, BOOL EnumMore; BLTINFO BltInfo; + ASSERT(Dest != NULL && Source != NULL && DestRect != NULL && SourcePoint != NULL); + MouseSafetyOnDrawStart(Source, SourcePoint->x, SourcePoint->y, (SourcePoint->x + abs(DestRect->right - DestRect->left)), (SourcePoint->y + abs(DestRect->bottom - DestRect->top))); -- 2.17.1