Misha Koshelev : oleview:
Account for unnamed right hand side parameter of propput.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Feb 22 05:56:39 CST 2007
Module: wine
Branch: master
Commit: a85895d2401f146a6e275e55e51c7e5b1ddf5122
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a85895d2401f146a6e275e55e51c7e5b1ddf5122
Author: Misha Koshelev <mk144210 at bcm.tmc.edu>
Date: Thu Feb 22 00:39:52 2007 -0600
oleview: Account for unnamed right hand side parameter of propput.
---
programs/oleview/typelib.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c
index 91c1775..c452343 100644
--- a/programs/oleview/typelib.c
+++ b/programs/oleview/typelib.c
@@ -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);
- AddToTLDataStrW(tld, bstrParamNames[j+1]);
- SysFreeString(bstrParamNames[j+1]);
+ if (j+1 < namesNo) {
+ AddToTLDataStrW(tld, bstrParamNames[j+1]);
+ SysFreeString(bstrParamNames[j+1]);
+ } else {
+ AddToTLDataStrW(tld, szRhs);
+ }
}
AddToTLDataStrW(tld, wszCloseBrackets2);
AddToTLDataStrW(tld, wszSemicolon);
More information about the wine-cvs
mailing list