Commit in reactos/subsys/win32k/objects on MAIN
brush.c+4-21.42 -> 1.43
IntGdiInitBrushInstance(): assume callers pass us valid parameters

reactos/subsys/win32k/objects
brush.c 1.42 -> 1.43
diff -u -r1.42 -r1.43
--- brush.c	12 Dec 2004 01:40:38 -0000	1.42
+++ brush.c	18 Dec 2004 18:19:24 -0000	1.43
@@ -17,7 +17,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: brush.c,v 1.42 2004/12/12 01:40:38 weiden Exp $
+ * $Id: brush.c,v 1.43 2004/12/18 18:19:24 royce Exp $
  */
 #include <w32k.h>
 
@@ -83,8 +83,10 @@
 VOID FASTCALL
 IntGdiInitBrushInstance(GDIBRUSHINST *BrushInst, PGDIBRUSHOBJ BrushObj, XLATEOBJ *XlateObj)
 {
+   ASSERT(BrushInst);
+   ASSERT(BrushObj);
    if (BrushObj->flAttrs & GDIBRUSH_IS_NULL)
-      BrushInst->BrushObject.iSolidColor = 0;			
+      BrushInst->BrushObject.iSolidColor = 0;
    else if (BrushObj->flAttrs & GDIBRUSH_IS_SOLID)
       BrushInst->BrushObject.iSolidColor = XLATEOBJ_iXlate(XlateObj, BrushObj->BrushAttr.lbColor);
    else
CVSspam 0.2.8