Nikolay Sivov : oleview: Use proper pointer type when allocating names array (Coverity).
Module: wine Branch: master Commit: ff94fc1dafb415fb4c97b5fead66ab36fb4280db URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff94fc1dafb415fb4c97b5fead... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Tue Dec 29 20:36:55 2015 +0300 oleview: Use proper pointer type when allocating names array (Coverity). Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- programs/oleview/typelib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c index 04b9067..cbf6ab1 100644 --- a/programs/oleview/typelib.c +++ b/programs/oleview/typelib.c @@ -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))) {
participants (1)
-
Alexandre Julliard