vbscript: Use correct pointer type in add_match (scan-build).

This commit is contained in:
Alex Henrie 2023-07-04 12:13:01 -06:00 committed by Alexandre Julliard
parent de1dd6cbf7
commit 449bdc33b5

View file

@ -1024,12 +1024,12 @@ static HRESULT add_match(IMatchCollection2 *iface, IMatch2 *add)
TRACE("(%p)->(%p)\n", This, add);
if(!This->size) {
This->matches = malloc(8*sizeof(IMatch*));
This->matches = malloc(8 * sizeof(*This->matches));
if(!This->matches)
return E_OUTOFMEMORY;
This->size = 8;
}else if(This->size == This->count) {
IMatch2 **new_matches = realloc(This->matches, 2*This->size*sizeof(IMatch*));
IMatch2 **new_matches = realloc(This->matches, 2 * This->size * sizeof(*This->matches));
if(!new_matches)
return E_OUTOFMEMORY;