Commit 449bdc33 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

parent de1dd6cb
...@@ -1024,12 +1024,12 @@ static HRESULT add_match(IMatchCollection2 *iface, IMatch2 *add) ...@@ -1024,12 +1024,12 @@ static HRESULT add_match(IMatchCollection2 *iface, IMatch2 *add)
TRACE("(%p)->(%p)\n", This, add); TRACE("(%p)->(%p)\n", This, add);
if(!This->size) { if(!This->size) {
This->matches = malloc(8*sizeof(IMatch*)); This->matches = malloc(8 * sizeof(*This->matches));
if(!This->matches) if(!This->matches)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
This->size = 8; This->size = 8;
}else if(This->size == This->count) { }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) if(!new_matches)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
......
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