From: Royce Mitchell III Date: Sun, 12 Dec 2004 21:43:17 +0000 (+0000) Subject: add missing assertion X-Git-Tag: backups/ELF_support@12700~7^2~11 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=522137c499c2776378badeecb26c2b3ef908f263 add missing assertion svn path=/trunk/; revision=12060 --- diff --git a/reactos/subsys/win32k/eng/gradient.c b/reactos/subsys/win32k/eng/gradient.c index eda7e85739f..d6d13d1cf0c 100644 --- a/reactos/subsys/win32k/eng/gradient.c +++ b/reactos/subsys/win32k/eng/gradient.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: gradient.c,v 1.11 2004/11/15 23:10:41 gvg Exp $ +/* $Id: gradient.c,v 1.12 2004/12/12 21:43:17 royce Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -529,9 +529,14 @@ IntEngGradientFill( { BOOL Ret; SURFOBJ *psoDest = &pboDest->SurfObj; + ASSERT(psoDest); - MouseSafetyOnDrawStart(psoDest, pco->rclBounds.left, pco->rclBounds.top, - pco->rclBounds.right, pco->rclBounds.bottom); + MouseSafetyOnDrawStart( + psoDest, + pco->rclBounds.left, + pco->rclBounds.top, + pco->rclBounds.right, + pco->rclBounds.bottom); if((psoDest->iType != STYPE_BITMAP) && (pboDest->flHooks & HOOK_GRADIENTFILL)) { Ret = GDIDEVFUNCS(psoDest).GradientFill(