oleview: Account for unnamed right hand side parameter of propput.

This commit is contained in:
Misha Koshelev 2007-02-22 00:39:52 -06:00 committed by Alexandre Julliard
parent a0ad8f38c7
commit a85895d240
1 changed files with 9 additions and 4 deletions

View File

@ -437,6 +437,7 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent)
BSTR bstrName, *bstrParamNames;
WCHAR wszText[MAX_LOAD_STRING];
WCHAR wszAfter[MAX_LOAD_STRING];
WCHAR szRhs[] = {'r','h','s',0}; /* Right-hand side of a propput */
BOOL bFirst;
U(tvis).item.mask = TVIF_TEXT|TVIF_PARAM;
@ -531,10 +532,10 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent)
AddToTLDataStrW(tld, bstrName);
AddToTLDataStrW(tld, wszOpenBrackets2);
for(j=0; j<namesNo-1; j++)
for(j=0; j<pFuncDesc->cParams; j++)
{
if(j != 0) AddToTLDataStrW(tld, wszComa);
if(namesNo-1 != 1)
if(pFuncDesc->cParams != 1)
{
AddToTLDataStrW(tld, wszNewLine);
AddSpaces(tld, tabSize);
@ -574,8 +575,12 @@ int EnumFuncs(ITypeInfo *pTypeInfo, int cFuncs, HTREEITEM hParent)
AddToTLDataStrW(tld, wszText);
AddToTLDataStrW(tld, wszAfter);
AddToTLDataStrW(tld, wszSpace);
if (j+1 < namesNo) {
AddToTLDataStrW(tld, bstrParamNames[j+1]);
SysFreeString(bstrParamNames[j+1]);
} else {
AddToTLDataStrW(tld, szRhs);
}
}
AddToTLDataStrW(tld, wszCloseBrackets2);
AddToTLDataStrW(tld, wszSemicolon);