mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
_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;
|
||||
while (1) {
|
||||
hres = ITypeInfo_GetFuncDesc(tinfo,n,&fdesc);
|
||||
if (fdesc->oVft/4 > max)
|
||||
max = fdesc->oVft/4;
|
||||
if (hres)
|
||||
return max+1;
|
||||
if (fdesc->oVft/4 > max)
|
||||
max = fdesc->oVft/4;
|
||||
n++;
|
||||
}
|
||||
/*NOTREACHED*/
|
||||
|
Loading…
Reference in New Issue
Block a user