Commit 15162ddf authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

gdi32: Check return value of REGION_UnionRectWithRegion (Coverity).

parent d34e0515
......@@ -1271,11 +1271,12 @@ static BOOL REGION_UnionRectWithRegion(const RECT *rect, WINEREGION *rgn)
BOOL add_rect_to_region( HRGN rgn, const RECT *rect )
{
RGNOBJ *obj = GDI_GetObjPtr( rgn, OBJ_REGION );
BOOL ret;
if (!obj) return FALSE;
REGION_UnionRectWithRegion( rect, &obj->rgn );
ret = REGION_UnionRectWithRegion( rect, &obj->rgn );
GDI_ReleaseObj( rgn );
return TRUE;
return ret;
}
/***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment