gdi32: Check return value of REGION_UnionRectWithRegion (Coverity).

This commit is contained in:
Marcus Meissner 2011-12-31 16:21:48 +01:00 committed by Alexandre Julliard
parent d34e0515fd
commit 15162ddf3c
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
/***********************************************************************