mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
vbscript: Use correct pointer type in add_match (scan-build).
This commit is contained in:
parent
de1dd6cbf7
commit
449bdc33b5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue