oleview: Use proper pointer type when allocating names array (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3c84cc1807
commit
ff94fc1daf
|
@ -616,7 +616,7 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen
|
|||
}
|
||||
|
||||
bstrParamNames = HeapAlloc(GetProcessHeap(), 0,
|
||||
sizeof(BSTR*)*(pFuncDesc->cParams+1));
|
||||
sizeof(BSTR)*(pFuncDesc->cParams+1));
|
||||
if(FAILED(ITypeInfo_GetNames(pTypeInfo, pFuncDesc->memid, bstrParamNames,
|
||||
pFuncDesc->cParams+1, &namesNo)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue