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

reactos/subsys/win32k/eng/paint.c
reactos/subsys/win32k/eng/surface.c

index 57ee7dd..947e3c3 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: paint.c,v 1.20 2004/07/03 13:55:35 navaraf Exp $
+/* $Id: paint.c,v 1.21 2004/12/14 04:55:43 royce Exp $
  * 
  * COPYRIGHT:         See COPYING in the top level directory
  * PROJECT:           ReactOS kernel
@@ -34,6 +34,8 @@ BOOL STDCALL FillSolid(SURFOBJ *Surface, PRECTL pRect, ULONG iColor)
   LONG y;
   ULONG LineWidth;
 
+  ASSERT ( Surface );
+  ASSERT ( pRect );
   MouseSafetyOnDrawStart(Surface, pRect->left, pRect->top, pRect->right, pRect->bottom);
   LineWidth  = pRect->right - pRect->left;
   DPRINT(" LineWidth: %d, top: %d, bottom: %d\n", LineWidth, pRect->top, pRect->bottom);
@@ -55,6 +57,9 @@ EngPaintRgn(SURFOBJ *Surface, CLIPOBJ *ClipRegion, ULONG iColor, MIX Mix,
   BOOL EnumMore;
   ULONG i;
 
+  ASSERT(Surface);
+  ASSERT(ClipRegion);
+
   DPRINT("ClipRegion->iMode:%d, ClipRegion->iDComplexity: %d\n Color: %d", ClipRegion->iMode, ClipRegion->iDComplexity, iColor);
   switch(ClipRegion->iMode) {
 
index 7b6d003..b6982cb 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: surface.c,v 1.45 2004/12/12 01:40:36 weiden Exp $
+/* $Id: surface.c,v 1.46 2004/12/14 04:55:43 royce Exp $
  * 
  * COPYRIGHT:         See COPYING in the top level directory
  * PROJECT:           ReactOS kernel
@@ -472,6 +472,8 @@ EngEraseSurface(SURFOBJ *Surface,
                RECTL *Rect,
                ULONG iColor)
 {
+  ASSERT(Surface);
+  ASSERT(Rect);
   return FillSolid(Surface, Rect, iColor);
 }