mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
ASSERT parameter assumptions in IntEngLineTo()
svn path=/trunk/; revision=12111
This commit is contained in:
parent
6d6cf25eee
commit
3bbc2dd8e3
1 changed files with 8 additions and 2 deletions
|
@ -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: lineto.c,v 1.35 2004/07/14 20:48:57 navaraf Exp $
|
||||
* $Id: lineto.c,v 1.36 2004/12/14 04:30:58 royce Exp $
|
||||
*/
|
||||
#include <w32k.h>
|
||||
|
||||
|
@ -491,14 +491,20 @@ IntEngLineTo(BITMAPOBJ *DestObj,
|
|||
MIX mix)
|
||||
{
|
||||
BOOLEAN ret;
|
||||
SURFOBJ *DestSurf = &DestObj->SurfObj;
|
||||
SURFOBJ *DestSurf;
|
||||
PGDIBRUSHINST GdiBrush;
|
||||
RECTL b;
|
||||
|
||||
ASSERT(DestObj);
|
||||
DestSurf = &DestObj->SurfObj;
|
||||
ASSERT(DestSurf);
|
||||
|
||||
GdiBrush = CONTAINING_RECORD(
|
||||
Brush,
|
||||
GDIBRUSHINST,
|
||||
BrushObject);
|
||||
ASSERT(GdiBrush);
|
||||
ASSERT(GdiBrush->GdiBrushObject);
|
||||
|
||||
if (GdiBrush->GdiBrushObject->flAttrs & GDIBRUSH_IS_NULL)
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue