Commit 49e87705 authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

oleview: Respect size of array ITypeInfo_GetNames returns.

parent a5317eb8
......@@ -531,10 +531,10 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent)
AddToTLDataStrW(tld, bstrName);
AddToTLDataStrW(tld, wszOpenBrackets2);
for(j=0; j<pFuncDesc->cParams; j++)
for(j=0; j<namesNo-1; j++)
{
if(j != 0) AddToTLDataStrW(tld, wszComa);
if(pFuncDesc->cParams != 1)
if(namesNo-1 != 1)
{
AddToTLDataStrW(tld, wszNewLine);
AddSpaces(tld, tabSize);
......
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