mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
gdi32: Check return value of REGION_UnionRectWithRegion (Coverity).
This commit is contained in:
parent
d34e0515fd
commit
15162ddf3c
@ -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;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user