comctl32/listview: Handle DPA_SetPtr() failure (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
87bc2aa607
commit
f5ca9b9104
|
@ -3123,7 +3123,11 @@ static RANGES ranges_clone(RANGES ranges)
|
||||||
RANGE *newrng = Alloc(sizeof(RANGE));
|
RANGE *newrng = Alloc(sizeof(RANGE));
|
||||||
if (!newrng) goto fail;
|
if (!newrng) goto fail;
|
||||||
*newrng = *((RANGE*)DPA_GetPtr(ranges->hdpa, i));
|
*newrng = *((RANGE*)DPA_GetPtr(ranges->hdpa, i));
|
||||||
DPA_SetPtr(clone->hdpa, i, newrng);
|
if (!DPA_SetPtr(clone->hdpa, i, newrng))
|
||||||
|
{
|
||||||
|
Free(newrng);
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return clone;
|
return clone;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue