ASSERT parameter assumptions in EngCopyBits()
authorRoyce Mitchell III <royce3@ev1.net>
Tue, 14 Dec 2004 04:22:00 +0000 (04:22 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Tue, 14 Dec 2004 04:22:00 +0000 (04:22 +0000)
svn path=/trunk/; revision=12109

reactos/subsys/win32k/eng/copybits.c

index c055c05..e0432dc 100644 (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: 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)));