Misha Koshelev : oleview: Respect size of array ITypeInfo_GetNames
returns.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 21 13:18:41 CST 2007
Module: wine
Branch: master
Commit: 49e8770563a004e92932b2e67f5c5f61e07ba8d7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=49e8770563a004e92932b2e67f5c5f61e07ba8d7
Author: Misha Koshelev <mk144210 at bcm.tmc.edu>
Date: Tue Feb 20 19:13:12 2007 -0600
oleview: Respect size of array ITypeInfo_GetNames returns.
---
programs/oleview/typelib.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/programs/oleview/typelib.c b/programs/oleview/typelib.c
index 64e3084..91c1775 100644
--- a/programs/oleview/typelib.c
+++ b/programs/oleview/typelib.c
@@ -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);
More information about the wine-cvs
mailing list