_nrroffuncs: Check for error before dereferencing returned pointer.
This commit is contained in:
parent
ccc7570b84
commit
995389ef57
|
@ -265,10 +265,10 @@ static int _nroffuncs(ITypeInfo *tinfo) {
|
||||||
n=0;
|
n=0;
|
||||||
while (1) {
|
while (1) {
|
||||||
hres = ITypeInfo_GetFuncDesc(tinfo,n,&fdesc);
|
hres = ITypeInfo_GetFuncDesc(tinfo,n,&fdesc);
|
||||||
if (fdesc->oVft/4 > max)
|
|
||||||
max = fdesc->oVft/4;
|
|
||||||
if (hres)
|
if (hres)
|
||||||
return max+1;
|
return max+1;
|
||||||
|
if (fdesc->oVft/4 > max)
|
||||||
|
max = fdesc->oVft/4;
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
|
|
Loading…
Reference in New Issue