Commit f88d7bc8 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

oleview: Fix some crashes on unnamed methods/arguments.

parent 64bf7ca8
...@@ -631,7 +631,7 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen ...@@ -631,7 +631,7 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen
AddToTLDataStrW(tld, wszStdCall); AddToTLDataStrW(tld, wszStdCall);
AddToTLDataStrW(tld, wszSpace); AddToTLDataStrW(tld, wszSpace);
} }
AddToTLDataStrW(tld, bstrName); if (bstrName) AddToTLDataStrW(tld, bstrName);
AddToTLDataStrW(tld, wszOpenBrackets2); AddToTLDataStrW(tld, wszOpenBrackets2);
for(j=0; j<pFuncDesc->cParams; j++) for(j=0; j<pFuncDesc->cParams; j++)
...@@ -701,8 +701,11 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen ...@@ -701,8 +701,11 @@ static int EnumFuncs(ITypeInfo *pTypeInfo, TYPEATTR *pTypeAttr, HTREEITEM hParen
AddToTLDataStrW(tld, wszAfter); AddToTLDataStrW(tld, wszAfter);
AddToTLDataStrW(tld, wszSpace); AddToTLDataStrW(tld, wszSpace);
if (j+1 < namesNo) { if (j+1 < namesNo) {
AddToTLDataStrW(tld, bstrParamNames[j+1]); if (bstrParamNames[j+1])
SysFreeString(bstrParamNames[j+1]); {
AddToTLDataStrW(tld, bstrParamNames[j+1]);
SysFreeString(bstrParamNames[j+1]);
}
} else { } else {
AddToTLDataStrW(tld, szRhs); AddToTLDataStrW(tld, szRhs);
} }
......
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